aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;