[Scummvm-cvs-logs] scummvm master -> 07c7f5e31a1f1952ebe583a138352e13e45e0c66
dreammaster
dreammaster at scummvm.org
Wed Apr 8 02:10:14 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
07c7f5e31a MADS: Fix crash leaving scene after shooting monkey
Commit: 07c7f5e31a1f1952ebe583a138352e13e45e0c66
https://github.com/scummvm/scummvm/commit/07c7f5e31a1f1952ebe583a138352e13e45e0c66
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-04-07T20:09:00-05:00
Commit Message:
MADS: Fix crash leaving scene after shooting monkey
Changed paths:
engines/mads/sprites.cpp
diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp
index 67d5e20..bc36b55 100644
--- a/engines/mads/sprites.cpp
+++ b/engines/mads/sprites.cpp
@@ -399,7 +399,7 @@ void SpriteSets::remove(int idx) {
if (idx == SPRITE_SLOTS_MAX_SIZE) {
delete _uiSprites;
_uiSprites = nullptr;
- } else if (idx >= 0) {
+ } else if (idx >= 0 && idx < (int)size()) {
delete (*this)[idx];
if (idx < ((int)size() - 1)) {
More information about the Scummvm-git-logs
mailing list