aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-14 21:33:58 -0400
committerPaul Gilbert2014-04-14 21:33:58 -0400
commit848c94cd0e86bd9f170da7b06371fb0a12d7bb07 (patch)
tree6f4e1bc57ec8916fa6f689f18a91295553bc8e04
parent3e1bbb724d271623ceb55a3b56d42e80ca2087f2 (diff)
downloadscummvm-rg350-848c94cd0e86bd9f170da7b06371fb0a12d7bb07.tar.gz
scummvm-rg350-848c94cd0e86bd9f170da7b06371fb0a12d7bb07.tar.bz2
scummvm-rg350-848c94cd0e86bd9f170da7b06371fb0a12d7bb07.zip
MADS: Fix for sprite refreshes when doing player cutscenes
-rw-r--r--engines/mads/sprites.cpp5
1 files 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;
}
}