From 00980849699460f8e9919599a8d89dc3dd60bc2e Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Mon, 27 Jul 2009 04:47:38 +0000 Subject: Fixed one more bug related to animations having no frames. svn-id: r42838 --- engines/draci/animation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/draci/animation.cpp') 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; -- cgit v1.2.3