summaryrefslogtreecommitdiff
path: root/src/resources/sprite/animatedsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-27 21:37:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-27 21:37:03 +0300
commitc18d789b35f29611c88d0e3bdbb5619500ea7a2a (patch)
treecdc7e6d57305bba43859b5a669df1e975220dc3f /src/resources/sprite/animatedsprite.cpp
parent6ed4f7f09a297e9afb829634399c94ccc542729e (diff)
downloadmanaplus-c18d789b35f29611c88d0e3bdbb5619500ea7a2a.tar.gz
manaplus-c18d789b35f29611c88d0e3bdbb5619500ea7a2a.tar.bz2
manaplus-c18d789b35f29611c88d0e3bdbb5619500ea7a2a.tar.xz
manaplus-c18d789b35f29611c88d0e3bdbb5619500ea7a2a.zip
Move spritedef load function from resourcemanager into separate file.
Diffstat (limited to 'src/resources/sprite/animatedsprite.cpp')
-rw-r--r--src/resources/sprite/animatedsprite.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/sprite/animatedsprite.cpp b/src/resources/sprite/animatedsprite.cpp
index 6ada9c394..8a60de0f3 100644
--- a/src/resources/sprite/animatedsprite.cpp
+++ b/src/resources/sprite/animatedsprite.cpp
@@ -32,6 +32,8 @@
#include "resources/animation/animation.h"
+#include "resources/loaders/spritedefloader.h"
+
#include "resources/resourcemanager/resourcemanager.h"
#include "resources/sprite/animationdelayload.h"
@@ -67,7 +69,7 @@ AnimatedSprite::AnimatedSprite(SpriteDef *restrict const sprite) :
AnimatedSprite *AnimatedSprite::load(const std::string &restrict filename,
const int variant)
{
- SpriteDef *restrict const s = resourceManager->getSprite(
+ SpriteDef *restrict const s = Loader::getSprite(
filename, variant);
if (!s)
return nullptr;