diff options
author | Paul Gilbert | 2015-06-07 20:19:41 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-07 20:19:41 -0400 |
commit | bfdedb68ec96e910892cab53ca0b01c9129f56cf (patch) | |
tree | dd0480ba7bf7da47ff3d995709f5ca61c7820894 | |
parent | e336317ea718bd311ab6aa53bf018fde0bc01671 (diff) | |
download | scummvm-rg350-bfdedb68ec96e910892cab53ca0b01c9129f56cf.tar.gz scummvm-rg350-bfdedb68ec96e910892cab53ca0b01c9129f56cf.tar.bz2 scummvm-rg350-bfdedb68ec96e910892cab53ca0b01c9129f56cf.zip |
SHERLOCK: Fix cmdSetNPCInfoLine
-rw-r--r-- | engines/sherlock/tattoo/tattoo_talk.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp index 91c6f251f5..b84cebe185 100644 --- a/engines/sherlock/tattoo/tattoo_talk.cpp +++ b/engines/sherlock/tattoo/tattoo_talk.cpp @@ -297,15 +297,15 @@ OpcodeReturn TattooTalk::cmdSetNPCDescOnOff(const byte *&str) { error("TODO: scr OpcodeReturn TattooTalk::cmdSetNPCInfoLine(const byte *&str) { int npcNum = *++str; - int len = *++str; People &people = *_vm->_people; Person &person = people[npcNum]; - for (int x = 0; x < len; x++) - person._description.setChar(str[x + 1], x); - person._description.setChar(0, len); - str += len; + person._description = ""; + int len = *++str; + for (int idx = 0; idx < len; ++idx) + person._description += str[idx + 1]; + str += len; return RET_SUCCESS; } |