diff options
author | Travis Howell | 2005-04-08 05:19:10 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-08 05:19:10 +0000 |
commit | 5bd6380b20babe5b949759c2527b5b5b554b1f80 (patch) | |
tree | 0cea1e9d1125c9391cb772ae51ba98e7021a7a79 /scumm/script_v72he.cpp | |
parent | 806c78655f8a088abc0e7ce396156ba20be86530 (diff) | |
download | scummvm-rg350-5bd6380b20babe5b949759c2527b5b5b554b1f80.tar.gz scummvm-rg350-5bd6380b20babe5b949759c2527b5b5b554b1f80.tar.bz2 scummvm-rg350-5bd6380b20babe5b949759c2527b5b5b554b1f80.zip |
Set array data
svn-id: r17446
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index e110cba9f3..5786c5e45b 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -1630,9 +1630,11 @@ void ScummEngine_v72he::o72_unknownCF() { byte string[255]; copyScriptString(string); + int len = resStrLen(string) + 1; + writeVar(0, 0); - defineArray(0, kStringArray, 0, 0, 0, 0); - writeArray(0, 0, 0, 0); + ArrayHeader *ah = defineArray(0, kStringArray, 0, 0, 0, len); + memcpy(ah->data, string, len); push(readVar(0)); debug(1,"o72_unknownCF: String %s", string); } |