From 4a3592f77f9c089c33b9eaf2db426999a01b2b78 Mon Sep 17 00:00:00 2001 From: LMH Date: Wed, 24 Dec 2014 12:18:11 -1000 Subject: [PATCH] Fixed a Segmentation Fault when mr_iceblock was kicked into a brick containing coins due to earthflower related changes --- src/object/brick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0