[Scummvm-cvs-logs] SF.net SVN: scummvm: [31039] scummvm/trunk/engines/kyra/gui_v2.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Mar 3 23:51:18 CET 2008


Revision: 31039
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31039&view=rev
Author:   lordhoto
Date:     2008-03-03 14:51:16 -0800 (Mon, 03 Mar 2008)

Log Message:
-----------
Fixed crash when clicking on empty inventory slot.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/gui_v2.cpp

Modified: scummvm/trunk/engines/kyra/gui_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_v2.cpp	2008-03-03 22:38:31 UTC (rev 31038)
+++ scummvm/trunk/engines/kyra/gui_v2.cpp	2008-03-03 22:51:16 UTC (rev 31039)
@@ -573,7 +573,7 @@
 
 	uint16 item = _mainCharacter.inventory[inventorySlot];
 	if (_itemInHand == -1) {
-		if (item == -1)
+		if (item == 0xFFFF)
 			return 0;
 		_screen->hideMouse();
 		clearInventorySlot(inventorySlot, 0);


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