From 49a89783b09365f681474ae07bce41f3ddd56174 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Aug 2016 22:47:17 +0300 Subject: Add asserts in simpleanimation. --- src/resources/animation/simpleanimation.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/resources') 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; } -- cgit v1.2.3-70-g09d2