]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Animation.h
initialize objects after loading
[l2e.git] / src / graphics / Animation.h
index a224f548590c4af16edad31b32c1ab596881df3d..ddbf095f185e06d552cc38b4a0153a3c3db53aaa 100644 (file)
@@ -11,6 +11,7 @@ namespace loader {
 
 #include "../app/Timer.h"
 #include "../math/Vector.h"
+#include "../loader/noinit.h"
 
 #include <memory>
 #include <SDL.h>
@@ -30,6 +31,8 @@ public:
        Animation(const Sprite *sprite, int frameTime, bool repeat = false)
        : sprite(sprite), frameTime(frameTime), repeat(repeat) { }
        virtual ~Animation() { };
+protected:
+       Animation(loader::noinit_t);
 
 public:
        const Sprite *GetSprite() const { return sprite; }