Skip to content

Commit

Permalink
Disable luabind super deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 24, 2015
1 parent 380336f commit 9b16c89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xrScriptEngine/script_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,9 @@ luabind::object CScriptEngine::name_space(LPCSTR namespace_name)
return lua_namespace;
LPSTR I = strchr(S, '.');
if (!I)
return lua_namespace[S];
return lua_namespace[(const char*)S];
*I = 0;
lua_namespace = lua_namespace[S];
lua_namespace = lua_namespace[(const char*)S];
S = I + 1;
}
}
Expand Down Expand Up @@ -1044,6 +1044,8 @@ void CScriptEngine::init(ExporterFunc exporterFunc, bool loadGlobalNamespace)
}
#endif
luabind::open(lua());
// XXX: temporary workaround to preserve backwards compatibility with game scripts
luabind::disable_super_deprecation();
setup_callbacks();
if (exporterFunc)
exporterFunc(lua());
Expand Down

0 comments on commit 9b16c89

Please sign in to comment.