diff options
author | Sven Hesse | 2009-06-15 23:09:37 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-15 23:09:37 +0000 |
commit | f6ca65206f6e4498541ede7bc936f1700b36c253 (patch) | |
tree | 3f6b762f148bf3aec644584ab782a0a9117b8adb /engines/gob/inter_v1.cpp | |
parent | 190dd0d077d3a1e82e7604668fab7e26189d2914 (diff) | |
download | scummvm-rg350-f6ca65206f6e4498541ede7bc936f1700b36c253.tar.gz scummvm-rg350-f6ca65206f6e4498541ede7bc936f1700b36c253.tar.bz2 scummvm-rg350-f6ca65206f6e4498541ede7bc936f1700b36c253.zip |
Renaming some variables in o1_assign() and o2_assign() to mirror the structure in o6_assign()
svn-id: r41569
Diffstat (limited to 'engines/gob/inter_v1.cpp')
-rw-r--r-- | engines/gob/inter_v1.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index 7638296a49..1df261d7ab 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -1323,13 +1323,13 @@ bool Inter_v1::o1_if(OpFuncParams ¶ms) { } bool Inter_v1::o1_assign(OpFuncParams ¶ms) { - byte *savedPos = _vm->_global->_inter_execPtr; + byte destType = *_vm->_global->_inter_execPtr; int16 dest = _vm->_parse->parseVarIndex(); int16 result; - int16 type = evalExpr(&result); + int16 srcType = evalExpr(&result); - switch (savedPos[0]) { + switch (destType) { case TYPE_VAR_INT32: case TYPE_ARRAY_INT32: WRITE_VAR_OFFSET(dest, _vm->_global->_inter_resVal); @@ -1337,7 +1337,7 @@ bool Inter_v1::o1_assign(OpFuncParams ¶ms) { case TYPE_VAR_STR: case TYPE_ARRAY_STR: - if (type == TYPE_IMM_INT16) + if (srcType == TYPE_IMM_INT16) WRITE_VARO_UINT8(dest, result); else WRITE_VARO_STR(dest, _vm->_global->_inter_resStr); |