diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-04-28 13:03:51 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-04-28 13:03:51 +0200 |
commit | b00d3ffb2054e0ae96b602ba46589ef408d5a23d (patch) | |
tree | 0ba707fe645f29cb8f5e3c8e73ed15dc8f3ac96e /src | |
parent | 3e50aa43e13ed0cd2f5bb937c46bd064bdbfeeff (diff) | |
download | mana-client-b00d3ffb2054e0ae96b602ba46589ef408d5a23d.tar.gz mana-client-b00d3ffb2054e0ae96b602ba46589ef408d5a23d.tar.bz2 mana-client-b00d3ffb2054e0ae96b602ba46589ef408d5a23d.tar.xz mana-client-b00d3ffb2054e0ae96b602ba46589ef408d5a23d.zip |
Fixing endless loop if the xml promises too many images
Reviewed-by: Bertram
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/spritedef.cpp | 2 |
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); |