Fixed time/badguy errors in statistics, still needs some testing
[supertux.git] / src / object / coin.cpp
index 7fbebc7..c7cf940 100644 (file)
@@ -68,7 +68,7 @@ Coin::collect()
 {
   Sector::current()->player->get_status()->add_coins(1);
   Sector::current()->add_object(new BouncyCoin(get_pos()));
-  Sector::current()->get_level()->stats.add_points(COINS_COLLECTED_STAT, 1);
+  Sector::current()->get_level()->stats.coins++;
   remove_me();
 }