From f501e91ed1490fde5227015dc02fbe6c0cee2b5f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 5 Mar 2015 09:12:20 -0500 Subject: MADS: Fix crash after throwing both bones to dog --- engines/mads/sprites.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3