aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorDenis Kasak2009-07-27 04:47:38 +0000
committerDenis Kasak2009-07-27 04:47:38 +0000
commit00980849699460f8e9919599a8d89dc3dd60bc2e (patch)
tree7db5b07318693505aaa3a7066710825f32eef747 /engines/draci
parentaa6efa33f1b5bb7485cb60012d71fdc14f3b9e67 (diff)
downloadscummvm-rg350-00980849699460f8e9919599a8d89dc3dd60bc2e.tar.gz
scummvm-rg350-00980849699460f8e9919599a8d89dc3dd60bc2e.tar.bz2
scummvm-rg350-00980849699460f8e9919599a8d89dc3dd60bc2e.zip
Fixed one more bug related to animations having no frames.
svn-id: r42838
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/animation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index cb4035a475..49a59b2b71 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -52,8 +52,9 @@ bool Animation::isLooping() {
void Animation::setRelative(int relx, int rely) {
- // Delete the previous frame
- markDirtyRect(_vm->_screen->getSurface());
+ // Delete the previous frame if there is one
+ if (_frames.size() > 0)
+ markDirtyRect(_vm->_screen->getSurface());
_relX = relx;
_relY = rely;