From 848c94cd0e86bd9f170da7b06371fb0a12d7bb07 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 14 Apr 2014 21:33:58 -0400 Subject: MADS: Fix for sprite refreshes when doing player cutscenes --- engines/mads/sprites.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp index 83f01430eb..cd838f7dfb 100644 --- a/engines/mads/sprites.cpp +++ b/engines/mads/sprites.cpp @@ -212,8 +212,9 @@ void SpriteSlots::fullRefresh(bool clearAll) { void SpriteSlots::deleteTimer(int seqIndex) { for (uint idx = 0; idx < size(); ++idx) { - if ((*this)[idx]._seqIndex == seqIndex) { - remove_at(idx); + SpriteSlot &slot = (*this)[idx]; + if (slot._seqIndex == seqIndex) { + slot._flags = IMG_ERASE; return; } } -- cgit v1.2.3