MADS: Fix for sprite refreshes when doing player cutscenes

This commit is contained in:
Paul Gilbert 2014-04-14 21:33:58 -04:00
parent 3e1bbb724d
commit 848c94cd0e

View File

@ -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;
}
}