diff options
author | Travis Howell | 2005-04-27 14:26:52 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-27 14:26:52 +0000 |
commit | f5189c323b1ce0ae8f713d4799a7fc6b77cc1efc (patch) | |
tree | 498123765feac2f7d6b889c9841d2dc23d8cc7cc /scumm/script_v100he.cpp | |
parent | f6971f847ce37b7c8afbbd29262a1ffed7335610 (diff) | |
download | scummvm-rg350-f5189c323b1ce0ae8f713d4799a7fc6b77cc1efc.tar.gz scummvm-rg350-f5189c323b1ce0ae8f713d4799a7fc6b77cc1efc.tar.bz2 scummvm-rg350-f5189c323b1ce0ae8f713d4799a7fc6b77cc1efc.zip |
Minor clean up, HE games should always copy strings directly.
svn-id: r17838
Diffstat (limited to 'scumm/script_v100he.cpp')
-rw-r--r-- | scumm/script_v100he.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v100he.cpp b/scumm/script_v100he.cpp index 824ee9570c..507df92bab 100644 --- a/scumm/script_v100he.cpp +++ b/scumm/script_v100he.cpp @@ -159,7 +159,7 @@ void ScummEngine_v100he::setupOpcodes() { /* 5C */ OPCODE(o6_pushByte), OPCODE(o72_pushDWord), - OPCODE(o72_addMessageToStack), + OPCODE(o72_getScriptString), OPCODE(o6_pushWord), /* 60 */ OPCODE(o6_pushWordVar), @@ -487,7 +487,7 @@ void ScummEngine_v100he::o100_actorOps() { int slot = pop(); int len = resStrLen(string) + 1; - addMessageToStack(string, a->_heTalkQueue[slot].sentence, len); + memcpy(a->_heTalkQueue[slot].sentence, string, len); a->_heTalkQueue[slot].posX = a->_talkPosX; a->_heTalkQueue[slot].posY = a->_talkPosY; |