aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/event.cpp')
-rw-r--r--engines/sludge/event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sludge/event.cpp b/engines/sludge/event.cpp
index 16e02e54b7..098720b4c6 100644
--- a/engines/sludge/event.cpp
+++ b/engines/sludge/event.cpp
@@ -320,7 +320,7 @@ bool EventManager::handleInput() {
VariableStack *tempStack = new VariableStack;
if (!checkNew(tempStack))
return false;
- makeTextVar(tempStack->thisVar, tempString);
+ tempStack->thisVar.makeTextVar(tempString);
tempStack->next = nullptr;
if (!startNewFunctionNum(_currentEvents->func[kSpace], 1, nullptr, tempStack))
return false;