[Scummvm-cvs-logs] SF.net SVN: scummvm: [31457] scummvm/trunk/engines/agi/op_cmd.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Apr 9 13:25:24 CEST 2008
Revision: 31457
http://scummvm.svn.sourceforge.net/scummvm/?rev=31457&view=rev
Author: thebluegr
Date: 2008-04-09 04:25:23 -0700 (Wed, 09 Apr 2008)
Log Message:
-----------
Fixed an off-by one error in the AGI set_menu opcode. Fixes bug #1935896 - "AGI: Fan(Beyond Titanic 2) - Assertion"
Modified Paths:
--------------
scummvm/trunk/engines/agi/op_cmd.cpp
Modified: scummvm/trunk/engines/agi/op_cmd.cpp
===================================================================
--- scummvm/trunk/engines/agi/op_cmd.cpp 2008-04-08 20:04:51 UTC (rev 31456)
+++ scummvm/trunk/engines/agi/op_cmd.cpp 2008-04-09 11:25:23 UTC (rev 31457)
@@ -1104,7 +1104,7 @@
cmd(set_menu) {
debugC(4, kDebugLevelScripts, "text %02x of %02x", p0, curLogic->numTexts);
- if (curLogic->texts != NULL && p0 < curLogic->numTexts)
+ if (curLogic->texts != NULL && p0 <= curLogic->numTexts)
g_agi->_menu->add(curLogic->texts[p0 - 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