Fix some warnings from clang's static code analyzer

This commit is contained in:
Pasi Kallinen
2015-11-18 22:54:28 +02:00
parent 5e5a78fdb2
commit dc09a991fe
14 changed files with 31 additions and 15 deletions

View File

@@ -391,6 +391,8 @@ unsigned corpseflags;
}
/* All special cases should precede the G_NOCORPSE check */
if (!obj) return NULL;
/* if polymorph or undead turning has killed this monster,
prevent the same attack beam from hitting its corpse */
if (context.bypasses)