X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fcoin.cpp;h=2ab89dab756632478fa2e679b529385192f275fe;hb=495f8b77cb935fe8eff81bec755efca8e34e8a99;hp=c9b38ba548b4bdba6e623cfa9d128fc1e726af90;hpb=a51d5cb786808bd613e34bbb43fb02ecbadc5142;p=supertux.git diff --git a/src/object/coin.cpp b/src/object/coin.cpp index c9b38ba54..2ab89dab7 100644 --- a/src/object/coin.cpp +++ b/src/object/coin.cpp @@ -45,7 +45,7 @@ Coin::draw(DrawingContext& context) void Coin::collect() { - Sector::current()->player->get_status().incCoins(); + Sector::current()->player->get_status()->incCoins(); Sector::current()->add_object(new BouncyCoin(get_pos())); global_stats.add_points(COINS_COLLECTED_STAT, 1); remove_me();