aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/variable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/variable.cpp')
-rw-r--r--engines/sludge/variable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sludge/variable.cpp b/engines/sludge/variable.cpp
index b445095630..5b03dadda8 100644
--- a/engines/sludge/variable.cpp
+++ b/engines/sludge/variable.cpp
@@ -310,7 +310,7 @@ Common::String getTextFromAnyVar(const variable &from) {
}
case SVT_OBJTYPE: {
- objectType *thisType = findObjectType(from.varData.intValue);
+ ObjectType *thisType = g_sludge->_objMan->findObjectType(from.varData.intValue);
if (thisType)
return thisType->screenName;
break;