[Scummvm-devel] The "Sam and Max inventory hack"

James 'Ender' Brown ender at scummvm.org
Mon Mar 1 07:58:09 CET 2004


> This can't work, because we invoke the inventory script by calling
> runInventoryScript(0), so localvar0 is 0 instead of the object that
> the script is called for. I think.
> 
> Changing this to runInventoryScript(obj) allows me to remove the hack,
> and ScummVM no longer crashes on the savegame I attached to bug #907113,
> http://sourceforge.net/tracker/index.php?func=detail&aid=907113&group_id=37116&atid=418820
> 
> But I don't know if this would break other things.

It sounds reasonable to me. Put it in HEAD and we'll test - I mean, I
can't imagine it breaking anything as I doubt anything would depend on
localVar0 being 0 :)

 - Ender





More information about the Scummvm-devel mailing list