object/bonus_block.[ch]pp: Fix a NULL-pointer dereference.
authorFlorian Forster <supertux@octo.it>
Thu, 11 Mar 2010 19:14:28 +0000 (19:14 +0000)
committerFlorian Forster <supertux@octo.it>
Thu, 11 Mar 2010 19:14:28 +0000 (19:14 +0000)
commit9d2fea4d9196d35d80c047d31d9cb34385fd39a9
tree8dc28ef23f3af0c846de7fa797135970af4fb3df
parent3ea16b6505bcd63647f29b5f002c1d66dceed0fb
object/bonus_block.[ch]pp: Fix a NULL-pointer dereference.

Fixes a bug introduced in revision 6575: Since a player is not a badguy, the
Player* was NULL in the badguy code. Dereferencing it leads to a segmentation
fault.

SVN-Revision: 6597
src/object/bonus_block.cpp
src/object/bonus_block.hpp