aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/scriptables/ScValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/scriptables/ScValue.cpp')
-rw-r--r--engines/wintermute/scriptables/ScValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/scriptables/ScValue.cpp b/engines/wintermute/scriptables/ScValue.cpp
index 387bf45b46..186f4ff9d2 100644
--- a/engines/wintermute/scriptables/ScValue.cpp
+++ b/engines/wintermute/scriptables/ScValue.cpp
@@ -170,7 +170,7 @@ CScValue *CScValue::GetProp(char *Name) {
Game->m_ScValue->SetInt(strlen(m_ValString));
} else {
WideString wstr = StringUtil::Utf8ToWide(m_ValString);
- Game->m_ScValue->SetInt(wstr.length());
+ Game->m_ScValue->SetInt(wstr.size());
}
return Game->m_ScValue;