aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-13 21:09:42 +0200
committerEinar Johan Trøan Sømåen2012-06-13 21:09:42 +0200
commitfb7423f47ceca492aa84ce2a8baa2725fe6056ea (patch)
treef1dff06a7046a5c860c5bf50a364560190edbe94
parentd4ac01148f54f0320657d7e29092be8893c6c9fc (diff)
downloadscummvm-rg350-fb7423f47ceca492aa84ce2a8baa2725fe6056ea.tar.gz
scummvm-rg350-fb7423f47ceca492aa84ce2a8baa2725fe6056ea.tar.bz2
scummvm-rg350-fb7423f47ceca492aa84ce2a8baa2725fe6056ea.zip
WINTERMUTE: Fix a critical typo in II_ADD in ScScript
-rw-r--r--engines/wintermute/Base/scriptables/ScScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/Base/scriptables/ScScript.cpp b/engines/wintermute/Base/scriptables/ScScript.cpp
index 7a2f0db62a..49e3417946 100644
--- a/engines/wintermute/Base/scriptables/ScScript.cpp
+++ b/engines/wintermute/Base/scriptables/ScScript.cpp
@@ -764,7 +764,7 @@ HRESULT CScScript::ExecuteInstruction() {
char *tempStr = new char [strlen(op1->GetString()) + strlen(op2->GetString()) + 1];
strcpy(tempStr, op1->GetString());
strcat(tempStr, op2->GetString());
- _operand->SetString(str);
+ _operand->SetString(tempStr);
delete [] tempStr;
} else if (op1->GetType() == VAL_INT && op2->GetType() == VAL_INT)
_operand->SetInt(op1->GetInt() + op2->GetInt());