object/bonus_block.[ch]pp: Fix a NULL-pointer dereference.
authorflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Thu, 11 Mar 2010 19:14:28 +0000 (19:14 +0000)
committerflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Thu, 11 Mar 2010 19:14:28 +0000 (19:14 +0000)
commit05b97d98760c03ea0f0a5fccda2da9afbfbfc3f7
tree8dc28ef23f3af0c846de7fa797135970af4fb3df
parent8a18f8e91fd48ed52ae4f129d84256d4abdd6767
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.

git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6597 837edb03-e0f3-0310-88ca-d4d4e8b29345
src/object/bonus_block.cpp
src/object/bonus_block.hpp