X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Ffalling_coin.cpp;h=975de6e512d487c13e6c9bed45fbdb9effd2ac77;hb=4a3592f77f9c089c33b9eaf2db426999a01b2b78;hp=ffa221c6ea65dfd68aafe6baea3c6a24d7e8e116;hpb=4e70d578de5d05a2bbc945f1d3853db758161f8f;p=supertux.git diff --git a/src/object/falling_coin.cpp b/src/object/falling_coin.cpp index ffa221c6e..975de6e51 100644 --- a/src/object/falling_coin.cpp +++ b/src/object/falling_coin.cpp @@ -21,11 +21,9 @@ FallingCoin::FallingCoin(const Vector& start_position, const int vel_x) : physic(), - pos(), - sprite() + pos(start_position), + sprite(SpriteManager::current()->create("images/objects/coin/coin.sprite")) { - pos = start_position; - sprite = SpriteManager::current()->create("images/objects/coin/coin.sprite"); physic.set_velocity_y(-800); physic.set_velocity_x(vel_x); }