summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-04-28 13:03:51 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-04-28 13:03:51 +0200
commitb00d3ffb2054e0ae96b602ba46589ef408d5a23d (patch)
tree0ba707fe645f29cb8f5e3c8e73ed15dc8f3ac96e
parent3e50aa43e13ed0cd2f5bb937c46bd064bdbfeeff (diff)
downloadmana-b00d3ffb2054e0ae96b602ba46589ef408d5a23d.tar.gz
mana-b00d3ffb2054e0ae96b602ba46589ef408d5a23d.tar.bz2
mana-b00d3ffb2054e0ae96b602ba46589ef408d5a23d.tar.xz
mana-b00d3ffb2054e0ae96b602ba46589ef408d5a23d.zip
Fixing endless loop if the xml promises too many images
Reviewed-by: Bertram
-rw-r--r--src/resources/spritedef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index c524c43c..9ad8382b 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -260,7 +260,7 @@ void SpriteDef::loadAnimation(xmlNodePtr animationNode,
if (!img)
{
logger->log("No image at index %d", start + variant_offset);
- continue;
+ break;
}
animation->addFrame(img, delay, offsetX, offsetY);