[Scummvm-cvs-logs] SF.net SVN: scummvm: [25140] scummvm/trunk/engines/parallaction/inventory. cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sun Jan 21 09:53:18 CET 2007
Revision: 25140
http://scummvm.svn.sourceforge.net/scummvm/?rev=25140&view=rev
Author: peres001
Date: 2007-01-21 00:53:18 -0800 (Sun, 21 Jan 2007)
Log Message:
-----------
fixed out-of-bounds error causing premature crashes on some systems
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/inventory.cpp
Modified: scummvm/trunk/engines/parallaction/inventory.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/inventory.cpp 2007-01-21 08:43:28 UTC (rev 25139)
+++ scummvm/trunk/engines/parallaction/inventory.cpp 2007-01-21 08:53:18 UTC (rev 25140)
@@ -151,7 +151,7 @@
void dropItem(uint16 v) {
uint16 _di = 0;
- for (uint16 _si = 0; _si < INVENTORY_MAX_ITEMS; _si++) {
+ for (uint16 _si = 0; _si < INVENTORY_MAX_ITEMS - 1; _si++) {
if (v + 4 == _inventory[_si]._index) {
_di = 1;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list