X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fobject%2Foneup.cpp;h=313efdf77bead3bdebc441ab4e3acdf60a729ead;hb=495f8b77cb935fe8eff81bec755efca8e34e8a99;hp=a576bcfe3c59568851d6e28406071d00a9730716;hpb=c43ea9b0d5372718888138ea2cc4abcd5acb5299;p=supertux.git diff --git a/src/object/oneup.cpp b/src/object/oneup.cpp index a576bcfe3..313efdf77 100644 --- a/src/object/oneup.cpp +++ b/src/object/oneup.cpp @@ -3,7 +3,7 @@ #include "oneup.h" #include "resources.h" #include "player.h" -#include "scene.h" +#include "player_status.h" #include "sector.h" #include "special/sprite_manager.h" #include "video/drawing_context.h" @@ -41,7 +41,7 @@ OneUp::collision(GameObject& other, const CollisionHit& ) { Player* player = dynamic_cast (&other); if(player) { - player->get_status().incLives(); + player->get_status()->incLives(); remove_me(); return ABORT_MOVE; }