diff --git a/source/simulation/EntityProperties.cpp b/source/simulation/EntityProperties.cpp index f5d49da501..e325bc343f 100755 --- a/source/simulation/EntityProperties.cpp +++ b/source/simulation/EntityProperties.cpp @@ -3,6 +3,7 @@ #include "EntityProperties.h" #include "BaseEntityCollection.h" #include "scripting/JSInterface_BaseEntity.h" +#include "utf16string.h" #undef new // to avoid confusing warnings @@ -115,7 +116,7 @@ void CBoundObjectProperty::set( const jsval value ) jsval CBoundObjectProperty::tojsval() { - return( STRING_TO_JSVAL( JS_NewUCStringCopyZ( g_ScriptingHost.getContext(), utf16().c_str() ) ) ); + return( STRING_TO_JSVAL( JS_NewUCStringCopyZ( g_ScriptingHost.getContext(), utf16string().c_str() ) ) ); } CBoundObjectProperty::CBoundObjectProperty()