From: LMH Date: Wed, 24 Dec 2014 22:18:11 +0000 (-1000) Subject: Fixed a Segmentation Fault when mr_iceblock was kicked into a brick containing coins... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4a3592f77f9c089c33b9eaf2db426999a01b2b78;p=supertux.git Fixed a Segmentation Fault when mr_iceblock was kicked into a brick containing coins due to earthflower related changes --- diff --git a/src/object/brick.cpp b/src/object/brick.cpp index d1158c148..36c6d6e90 100644 --- a/src/object/brick.cpp +++ b/src/object/brick.cpp @@ -92,7 +92,7 @@ Brick::try_break(Player* player) SoundManager::current()->play("sounds/brick.wav"); Sector* sector = Sector::current(); Player& player_one = *(sector->player); - if(coin_counter > 0 && !player->is_stone()) { + if(coin_counter > 0 ){ sector->add_object(std::make_shared(get_pos(), true)); coin_counter--; player_one.get_status()->add_coins(1);