Skip to content

Commit 9b16c89

Browse files
author
nitrocaster
committed
Disable luabind super deprecation.
1 parent 380336f commit 9b16c89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/xrScriptEngine/script_engine.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,9 @@ luabind::object CScriptEngine::name_space(LPCSTR namespace_name)
650650
return lua_namespace;
651651
LPSTR I = strchr(S, '.');
652652
if (!I)
653-
return lua_namespace[S];
653+
return lua_namespace[(const char*)S];
654654
*I = 0;
655-
lua_namespace = lua_namespace[S];
655+
lua_namespace = lua_namespace[(const char*)S];
656656
S = I + 1;
657657
}
658658
}
@@ -1044,6 +1044,8 @@ void CScriptEngine::init(ExporterFunc exporterFunc, bool loadGlobalNamespace)
10441044
}
10451045
#endif
10461046
luabind::open(lua());
1047+
// XXX: temporary workaround to preserve backwards compatibility with game scripts
1048+
luabind::disable_super_deprecation();
10471049
setup_callbacks();
10481050
if (exporterFunc)
10491051
exporterFunc(lua());

0 commit comments

Comments
 (0)