Prevent segfault, water_damage may get a NULL obj
This commit is contained in:
@@ -3159,6 +3159,8 @@ boolean force;
|
|||||||
{
|
{
|
||||||
boolean exploded = FALSE;
|
boolean exploded = FALSE;
|
||||||
|
|
||||||
|
if (!obj) return ER_NOTHING;
|
||||||
|
|
||||||
if (snuff_lit(obj))
|
if (snuff_lit(obj))
|
||||||
return ER_DAMAGED;
|
return ER_DAMAGED;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user