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
+4
View File
@@ -1123,6 +1123,10 @@ register struct obj *otmp;
{
boolean was_blind = Blind, changed = FALSE;
if (!otmp) {
impossible("Blindf_off without otmp");
return;
}
context.takeoff.mask &= ~W_TOOL;
setworn((struct obj *) 0, otmp->owornmask);
off_msg(otmp);