Fixed code that broke due to changes to Rectf and Sizef
[supertux.git] / src / object / floating_image.hpp
index 40b7d4c..85a7697 100644 (file)
@@ -18,8 +18,8 @@
 #define HEADER_SUPERTUX_OBJECT_FLOATING_IMAGE_HPP
 
 #include "object/anchor_point.hpp"
+#include "sprite/sprite_ptr.hpp"
 #include "supertux/game_object.hpp"
-#include <memory>
 
 class Sprite;
 
@@ -68,7 +68,7 @@ public:
   void draw(DrawingContext& context);
 
 private:
-  std::auto_ptr<Sprite> sprite;
+  SpritePtr sprite;
   int layer;
   bool visible;
   AnchorPoint anchor;