Fixed a Segmentation Fault when mr_iceblock was kicked into a brick containing coins...
authorLMH <lmh.0013@gmail.com>
Wed, 24 Dec 2014 22:18:11 +0000 (12:18 -1000)
committerLMH <lmh.0013@gmail.com>
Wed, 24 Dec 2014 22:18:11 +0000 (12:18 -1000)
src/object/brick.cpp

index d1158c1..36c6d6e 100644 (file)
@@ -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<BouncyCoin>(get_pos(), true));
     coin_counter--;
     player_one.get_status()->add_coins(1);