[Scummvm-cvs-logs] SF.net SVN: scummvm:[50234] scummvm/trunk/engines/sci/engine/kstring.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Thu Jun 24 23:09:39 CEST 2010
Revision: 50234
http://scummvm.svn.sourceforge.net/scummvm/?rev=50234&view=rev
Author: wjpalenstijn
Date: 2010-06-24 21:09:38 +0000 (Thu, 24 Jun 2010)
Log Message:
-----------
SCI: Make kStrAt clear segment when writing characters
This is necessary since the uninitialized value detection from r50211,
and is analogous to seg_manager.cpp's setChar.
(Triggered in LSL3 age verification.)
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kstring.cpp
Modified: scummvm/trunk/engines/sci/engine/kstring.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kstring.cpp 2010-06-24 20:52:35 UTC (rev 50233)
+++ scummvm/trunk/engines/sci/engine/kstring.cpp 2010-06-24 21:09:38 UTC (rev 50234)
@@ -115,12 +115,14 @@
if (argc > 2) { /* Request to modify this char */
tmp.offset &= 0xff00;
tmp.offset |= newvalue;
+ tmp.segment = 0;
}
} else {
value = tmp.offset >> 8;
if (argc > 2) { /* Request to modify this char */
tmp.offset &= 0x00ff;
tmp.offset |= newvalue << 8;
+ tmp.segment = 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