aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/sequence.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-08 10:53:10 -0500
committerPaul Gilbert2014-03-08 10:53:10 -0500
commit984099ae2ca9dd53b47e44e7815c560c68acbd61 (patch)
treec1497c4e34a3c990d83dd15c97f9bc14dbb40767 /engines/mads/sequence.cpp
parent9c88ed16828ef6dde467fc03bb9af8d04b0bb3e2 (diff)
downloadscummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.tar.gz
scummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.tar.bz2
scummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.zip
MADS: Implemented stubbed SpriteSlots methods
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]);
}
}