From: Ingo Ruhnke Date: Thu, 22 Apr 2004 16:49:28 +0000 (+0000) Subject: - fixed bomb-dup bug (vector increases on add, and this changes I guess, so remove... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d90b605a623f214534b57cc39f9f2dfda9b91b8f;p=supertux.git - fixed bomb-dup bug (vector increases on add, and this changes I guess, so remove doesn't work, vector should really store pointers, not values) SVN-Revision: 642 --- diff --git a/src/badguy.cpp b/src/badguy.cpp index 67d55406c..1c06b259e 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -856,6 +856,7 @@ void BadGuy::squish(Player* player) { if(kind == BAD_MRBOMB) { + remove_me(); // mrbomb transforms into a bomb now World::current()->add_bad_guy(base.x, base.y, BAD_BOMB); @@ -864,7 +865,6 @@ BadGuy::squish(Player* player) play_sound(sounds[SND_SQUISH], SOUND_CENTER_SPEAKER); player_status.score_multiplier++; - remove_me(); return; } else if(kind == BAD_BSOD) {