Prevent segfault, water_damage may get a NULL obj

This commit is contained in:
Pasi Kallinen
2015-03-18 21:40:54 +02:00
parent 27add21e7e
commit e93add8cb8

View File

@@ -3159,6 +3159,8 @@ boolean force;
{
boolean exploded = FALSE;
if (!obj) return ER_NOTHING;
if (snuff_lit(obj))
return ER_DAMAGED;