mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
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.) svn-id: r50234
This commit is contained in:
@@ -115,12 +115,14 @@ reg_t kStrAt(EngineState *s, int argc, reg_t *argv) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user