aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v80he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v80he.cpp')
-rw-r--r--scumm/script_v80he.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp
index ae943e1870..25590b3518 100644
--- a/scumm/script_v80he.cpp
+++ b/scumm/script_v80he.cpp
@@ -446,7 +446,7 @@ void ScummEngine_v80he::o80_localizeArrayToRoom() {
void ScummEngine_v80he::o80_readConfigFile() {
byte name[128], section[128], filename[256];
- int type, retval;
+ int type;
// we pretend that we don't have .ini file
copyScriptString(section);
@@ -463,9 +463,8 @@ void ScummEngine_v80he::o80_readConfigFile() {
case 7: // string
writeVar(0, 0);
defineArray(0, kStringArray, 0, 0, 0, 0);
- retval = readVar(0);
writeArray(0, 0, 0, 0);
- push(retval); // var ID string
+ push(readVar(0)); // var ID string
break;
default:
error("o80_readConfigFile: default type %d", type);