From: mathnerd314 Date: Sun, 28 Feb 2010 19:57:14 +0000 (+0000) Subject: Small ctor change. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=367116b566b207c16778d66f64b2e725c9711440;p=supertux.git Small ctor change. git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6468 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/src/object/floating_image.cpp b/src/object/floating_image.cpp index 0d41354e9..856bafc5a 100644 --- a/src/object/floating_image.cpp +++ b/src/object/floating_image.cpp @@ -20,7 +20,7 @@ #include "supertux/globals.hpp" FloatingImage::FloatingImage(const std::string& spritefile) : - sprite(), + sprite(sprite_manager->create(spritefile)), layer(LAYER_FOREGROUND1 + 1), visible(false), anchor(ANCHOR_MIDDLE), @@ -28,7 +28,6 @@ FloatingImage::FloatingImage(const std::string& spritefile) : fading(0), fadetime(0) { - sprite = sprite_manager->create(spritefile); } FloatingImage::~FloatingImage()