From c6832a4d5729bfcfb2228b5f9debe6a4cf536791 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 1 Nov 2015 01:36:18 +0200 Subject: [PATCH] Free the venom object, even if it is not thrown --- src/mthrowu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mthrowu.c b/src/mthrowu.c index 061370908..2a882e2d0 100644 --- a/src/mthrowu.c +++ b/src/mthrowu.c @@ -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;