aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/sequence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/sequence.cpp')
-rw-r--r--engines/mads/sequence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/sequence.cpp b/engines/mads/sequence.cpp
index 1e9281090b..ec9c1a8c62 100644
--- a/engines/mads/sequence.cpp
+++ b/engines/mads/sequence.cpp
@@ -202,7 +202,7 @@ bool SequenceList::loadSprites(int seqIndex) {
// Doesn't have an associated sprite anymore, so mark as done
seqEntry._doneFlag = true;
}
- else if ((slotIndex = scene._spriteSlots.getIndex()) >= 0) {
+ else if ((slotIndex = scene._spriteSlots.add()) >= 0) {
SpriteSlot &spriteSlot = scene._spriteSlots[slotIndex];
setSpriteSlot(seqIndex, spriteSlot);
@@ -377,7 +377,7 @@ void SequenceList::scan() {
for (uint i = 0; i < _entries.size(); ++i) {
if (!_entries[i]._active && (_entries[i]._spritesIndex != -1)) {
- int idx = scene._spriteSlots.getIndex();
+ int idx = scene._spriteSlots.add();
setSpriteSlot(i, scene._spriteSlots[idx]);
}
}