static analyzer bit for ball.c
src/ball.c(50): warning C6011: Dereferencing NULL pointer 'uball'.
This commit is contained in:
@@ -44,7 +44,7 @@ ballfall(void)
|
||||
{
|
||||
boolean gets_hit;
|
||||
|
||||
if (uball && carried(uball) && welded(uball))
|
||||
if (!uball || (uball && carried(uball) && welded(uball)))
|
||||
return;
|
||||
|
||||
gets_hit = (((uball->ox != u.ux) || (uball->oy != u.uy))
|
||||
|
||||
Reference in New Issue
Block a user