diff options
author | Filippos Karapetis | 2012-06-21 22:57:00 +0300 |
---|---|---|
committer | Filippos Karapetis | 2012-06-21 22:57:00 +0300 |
commit | 99b1c736396799260cd715b40a074cf32d104485 (patch) | |
tree | 000a58dcc7e1a80cf5a1613bbd4be41eb669e543 /engines/sci/engine/kstring.cpp | |
parent | 76f3f1b13621b43781c4a2c505e646d9d52fdab7 (diff) | |
download | scummvm-rg350-99b1c736396799260cd715b40a074cf32d104485.tar.gz scummvm-rg350-99b1c736396799260cd715b40a074cf32d104485.tar.bz2 scummvm-rg350-99b1c736396799260cd715b40a074cf32d104485.zip |
SCI: Fix silly typo
Thanks to digitall for spotting this
Diffstat (limited to 'engines/sci/engine/kstring.cpp')
-rw-r--r-- | engines/sci/engine/kstring.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp index 9eebf2c88a..c22d7c7b1e 100644 --- a/engines/sci/engine/kstring.cpp +++ b/engines/sci/engine/kstring.cpp @@ -126,8 +126,8 @@ reg_t kStrAt(EngineState *s, int argc, reg_t *argv) { value = tmp.getOffset() & 0x00ff; if (argc > 2) { /* Request to modify this char */ uint16 tmpOffset = tmp.toUint16(); - offset &= 0xff00; - offset |= newvalue; + tmpOffset &= 0xff00; + tmpOffset |= newvalue; tmp.setOffset(tmpOffset); tmp.setSegment(0); } @@ -135,8 +135,8 @@ reg_t kStrAt(EngineState *s, int argc, reg_t *argv) { value = tmp.getOffset() >> 8; if (argc > 2) { /* Request to modify this char */ uint16 tmpOffset = tmp.toUint16(); - offset &= 0x00ff; - offset |= newvalue << 8; + tmpOffset &= 0x00ff; + tmpOffset |= newvalue << 8; tmp.setOffset(tmpOffset); tmp.setSegment(0); } |