projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
731d879
)
Fixed a Segmentation Fault when mr_iceblock was kicked into a brick containing coins...
author
LMH
<lmh.0013@gmail.com>
Wed, 24 Dec 2014 22:18:11 +0000
(12:18 -1000)
committer
LMH
<lmh.0013@gmail.com>
Wed, 24 Dec 2014 22:18:11 +0000
(12:18 -1000)
src/object/brick.cpp
patch
|
blob
|
history
diff --git
a/src/object/brick.cpp
b/src/object/brick.cpp
index
d1158c1
..
36c6d6e
100644
(file)
--- 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<BouncyCoin>(get_pos(), true));
coin_counter--;
player_one.get_status()->add_coins(1);