[Scummvm-cvs-logs] SF.net SVN: scummvm:[47643] scummvm/trunk/engines/sci/engine/klists.cpp
lskovlun at users.sourceforge.net
lskovlun at users.sourceforge.net
Thu Jan 28 16:01:32 CET 2010
Revision: 47643
http://scummvm.svn.sourceforge.net/scummvm/?rev=47643&view=rev
Author: lskovlun
Date: 2010-01-28 15:01:28 +0000 (Thu, 28 Jan 2010)
Log Message:
-----------
Handle calls to NewNode() with just one parameter.
Takes care of Phantasmagoria, Torin, etc.
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/klists.cpp
Modified: scummvm/trunk/engines/sci/engine/klists.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/klists.cpp 2010-01-28 13:07:47 UTC (rev 47642)
+++ scummvm/trunk/engines/sci/engine/klists.cpp 2010-01-28 15:01:28 UTC (rev 47643)
@@ -171,8 +171,12 @@
}
reg_t kNewNode(EngineState *s, int argc, reg_t *argv) {
- s->r_acc = _k_new_node(s, argv[0], argv[1]);
+ if (argc == 1)
+ s->r_acc = _k_new_node(s, argv[0], argv[0]);
+ else
+ s->r_acc = _k_new_node(s, argv[0], argv[1]);
+
debugC(2, kDebugLevelNodes, "New nodebase at %04x:%04x\n", PRINT_REG(s->r_acc));
return s->r_acc;
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