diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-11 22:47:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-11 22:47:17 +0300 |
commit | 49a89783b09365f681474ae07bce41f3ddd56174 (patch) | |
tree | 4e876cd6474fd2bc96a7c8bb20a42731d815b341 /src/resources/animation/simpleanimation.cpp | |
parent | facd5ec45b0c75eef9e97983a00c19ff2ecf1fe7 (diff) | |
download | plus-49a89783b09365f681474ae07bce41f3ddd56174.tar.gz plus-49a89783b09365f681474ae07bce41f3ddd56174.tar.bz2 plus-49a89783b09365f681474ae07bce41f3ddd56174.tar.xz plus-49a89783b09365f681474ae07bce41f3ddd56174.zip |
Add asserts in simpleanimation.
Diffstat (limited to 'src/resources/animation/simpleanimation.cpp')
-rw-r--r-- | src/resources/animation/simpleanimation.cpp | 9 |
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; } |