Free the venom object, even if it is not thrown

This commit is contained in:
Pasi Kallinen
2015-11-01 01:36:18 +02:00
parent 4f616a932c
commit c6832a4d57

View File

@@ -705,6 +705,9 @@ register struct attack *mattk;
distmin(mtmp->mx, mtmp->my, mtmp->mux, mtmp->muy), otmp);
nomul(0);
return 0;
} else {
obj_extract_self(otmp);
obfree(otmp, (struct obj *) 0);
}
}
return 0;