From fb7423f47ceca492aa84ce2a8baa2725fe6056ea Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Wed, 13 Jun 2012 21:09:42 +0200 Subject: WINTERMUTE: Fix a critical typo in II_ADD in ScScript --- engines/wintermute/Base/scriptables/ScScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3