diff options
Diffstat (limited to 'engines/mads/sprites.cpp')
-rw-r--r-- | engines/mads/sprites.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp index cd838f7dfb..85e36d6c76 100644 --- a/engines/mads/sprites.cpp +++ b/engines/mads/sprites.cpp @@ -400,9 +400,9 @@ void SpriteSets::remove(int idx) { if (idx >= 0) { delete (*this)[idx]; - if (idx < ((int)size() - 1)) + if (idx < ((int)size() - 1)) { (*this)[idx] = nullptr; - else { + } else { do { remove_at(size() - 1); } while (size() > 0 && (*this)[size() - 1] == nullptr); |