diff options
author | Paul Gilbert | 2015-03-05 09:12:20 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-03-05 09:12:20 -0500 |
commit | f501e91ed1490fde5227015dc02fbe6c0cee2b5f (patch) | |
tree | e7ab809ca09c1582c4d4a46414a965b4681049eb | |
parent | 5936f7c9d1faef575584cff69ca6263d82a9d773 (diff) | |
download | scummvm-rg350-f501e91ed1490fde5227015dc02fbe6c0cee2b5f.tar.gz scummvm-rg350-f501e91ed1490fde5227015dc02fbe6c0cee2b5f.tar.bz2 scummvm-rg350-f501e91ed1490fde5227015dc02fbe6c0cee2b5f.zip |
MADS: Fix crash after throwing both bones to dog
-rw-r--r-- | engines/mads/sprites.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp index f74edafc93..aa73fce712 100644 --- a/engines/mads/sprites.cpp +++ b/engines/mads/sprites.cpp @@ -406,7 +406,7 @@ void SpriteSets::remove(int idx) { } while (size() > 0 && (*this)[size() - 1] == nullptr); } - if (_assetCount > 0) + if (idx < 50 && _assetCount > 0) --_assetCount; } } |