aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/sprites.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/sprites.cpp')
-rw-r--r--engines/mads/sprites.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp
index 36cbdbea12..7bd8407c41 100644
--- a/engines/mads/sprites.cpp
+++ b/engines/mads/sprites.cpp
@@ -404,16 +404,12 @@ void SpriteSets::remove(int idx) {
(*this)[idx] = nullptr;
} else {
while (size() > 0 && (*this)[size() - 1] == nullptr) {
- delete (*this)[size() - 1];
remove_at(size() - 1);
}
}
if (_assetCount > 0)
--_assetCount;
- else
- // FIXME: This is needed, otherwise scene sprites are not cleared in this case
- clear();
}
}