[ scummvm-Patches-1639159 ] small patch to paralaction dropItem()

SourceForge.net noreply at sourceforge.net
Fri Jan 19 04:55:13 CET 2007


Patches item #1639159, was opened at 2007-01-19 09:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1639159&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Vladimir Menshakov (megath)
Assigned to: Nobody/Anonymous (nobody)
Summary: small patch to paralaction dropItem()

Initial Comment:
fixes crash at first screen :)

Index: engines/parallaction/inventory.cpp
===================================================================
--- engines/parallaction/inventory.cpp  (revision 25120)
+++ engines/parallaction/inventory.cpp  (working copy)
@@ -159,7 +159,8 @@

                if (_di == 0) continue;

-               memcpy(&_inventory[_si], &_inventory[_si+1], sizeof(InventoryItem));
+               //memcpy(&_inventory[_si], &_inventory[_si+1], sizeof(InventoryItem));
+               memset(&_inventory[_si], 0, sizeof(InventoryItem));
        }

        refreshInventory(_vm->_characterName);
.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1639159&group_id=37116




More information about the Scummvm-tracker mailing list