diff options
Diffstat (limited to 'engines/sludge/event.cpp')
-rw-r--r-- | engines/sludge/event.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/event.cpp b/engines/sludge/event.cpp index acccd7ff84..16e02e54b7 100644 --- a/engines/sludge/event.cpp +++ b/engines/sludge/event.cpp @@ -157,7 +157,7 @@ bool EventManager::handleInput() { } else { l = 1; - setVariable(*launchResult, SVT_INT, 0/*launch(launchMe) > 31*/); //TODO:false value + launchResult->setVariable(SVT_INT, 0/*launch(launchMe) > 31*/); //TODO:false value _vm->launchMe.clear(); launchResult = nullptr; } @@ -184,9 +184,9 @@ bool EventManager::handleInput() { ScreenRegion *overRegion = _vm->_regionMan->getOverRegion(); if (overRegion) { - setVariable(tempStack->thisVar, SVT_OBJTYPE, overRegion->thisType->objectNum); + tempStack->thisVar.setVariable(SVT_OBJTYPE, overRegion->thisType->objectNum); } else { - setVariable(tempStack->thisVar, SVT_INT, 0); + tempStack->thisVar.setVariable(SVT_INT, 0); } tempStack->next = nullptr; if (!startNewFunctionNum(_currentEvents->func[kFocus], 1, nullptr, tempStack)) |