summaryrefslogtreecommitdiff
path: root/src/resources/sprite
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-10-04 04:08:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-10-04 04:08:44 +0300
commite4168f2b98954288f19b91132574a475b47fded8 (patch)
tree785f6adac9de88e6505669129a1bbae0bf86f473 /src/resources/sprite
parent29549cf31a03e2ac7290afaa7442b3b9519d4e7c (diff)
downloadplus-e4168f2b98954288f19b91132574a475b47fded8.tar.gz
plus-e4168f2b98954288f19b91132574a475b47fded8.tar.bz2
plus-e4168f2b98954288f19b91132574a475b47fded8.tar.xz
plus-e4168f2b98954288f19b91132574a475b47fded8.zip
Fix fallback code in spritedef.cpp
Diffstat (limited to 'src/resources/sprite')
-rw-r--r--src/resources/sprite/spritedef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/sprite/spritedef.cpp b/src/resources/sprite/spritedef.cpp
index 85c5ba547..2f6fcaf65 100644
--- a/src/resources/sprite/spritedef.cpp
+++ b/src/resources/sprite/spritedef.cpp
@@ -353,7 +353,7 @@ void SpriteDef::loadAnimation(const XmlNodePtr animationNode,
{
imageSet = getImageSet(imageSetName);
if (imageSet == nullptr)
- imageSet = imageSet;
+ imageSet = imageSet0;
}
const int offsetX = XML::getProperty(frameNode, "offsetX", 0)
+ imageSet->getOffsetX() - imageSet->getWidth() / 2