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=a45665484c2bdf4dbc3bc25567bd66e0d86869b7;p=supertux.git Small ctor change. SVN-Revision: 6468 --- 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()