summaryrefslogtreecommitdiff
path: root/src/resources/animation
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-11 22:47:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-11 22:47:17 +0300
commit49a89783b09365f681474ae07bce41f3ddd56174 (patch)
tree4e876cd6474fd2bc96a7c8bb20a42731d815b341 /src/resources/animation
parentfacd5ec45b0c75eef9e97983a00c19ff2ecf1fe7 (diff)
downloadmanaverse-49a89783b09365f681474ae07bce41f3ddd56174.tar.gz
manaverse-49a89783b09365f681474ae07bce41f3ddd56174.tar.bz2
manaverse-49a89783b09365f681474ae07bce41f3ddd56174.tar.xz
manaverse-49a89783b09365f681474ae07bce41f3ddd56174.zip
Add asserts in simpleanimation.
Diffstat (limited to 'src/resources/animation')
-rw-r--r--src/resources/animation/simpleanimation.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/resources/animation/simpleanimation.cpp b/src/resources/animation/simpleanimation.cpp
index dd88eba4a..b3292f4bb 100644
--- a/src/resources/animation/simpleanimation.cpp
+++ b/src/resources/animation/simpleanimation.cpp
@@ -34,6 +34,7 @@
#include "resources/loaders/imagesetloader.h"
+#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "debug.h"
@@ -185,7 +186,7 @@ void SimpleAnimation::initializeAnimation(const XmlNodePtr animationNode,
if (index < 0)
{
- logger->log1("No valid value for 'index'");
+ reportAlways("No valid value for 'index'");
continue;
}
@@ -193,7 +194,7 @@ void SimpleAnimation::initializeAnimation(const XmlNodePtr animationNode,
if (!img)
{
- logger->log("No image at index %d", index);
+ reportAlways("No image at index %d", index);
continue;
}
@@ -207,7 +208,7 @@ void SimpleAnimation::initializeAnimation(const XmlNodePtr animationNode,
if (start < 0 || end < 0)
{
- logger->log1("No valid value for 'start' or 'end'");
+ reportAlways("No valid value for 'start' or 'end'");
continue;
}
@@ -217,7 +218,7 @@ void SimpleAnimation::initializeAnimation(const XmlNodePtr animationNode,
if (!img)
{
- logger->log("No image at index %d", start);
+ reportAlways("No image at index %d", start);
continue;
}