From 4c265a2354928aa8dac0fa991b2bf7c4c841c89f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 6 Dec 2015 15:23:49 -0500 Subject: ACCESS: Fix crash on Darlene's 'I Told You No' sample --- engines/access/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/access') diff --git a/engines/access/sound.cpp b/engines/access/sound.cpp index b3317cee5f..5fb971188a 100644 --- a/engines/access/sound.cpp +++ b/engines/access/sound.cpp @@ -109,7 +109,7 @@ void SoundManager::playSound(Resource *res, int priority, bool loop) { byte internalSampleRate = resourceData[5]; int sampleSize = READ_LE_UINT16(resourceData + 7); - assert( (sampleSize + 32) == res->_size); + assert( (sampleSize + 32) <= res->_size); int sampleRate = 0; switch (internalSampleRate) { -- cgit v1.2.3