Remove LocaleGuards from LuaInstance state methods

There are no float <=> string conversions in these methods and g_base64_encode
etc functions are not affected by locale.
This commit is contained in:
Tim Mayberry 2016-09-05 09:03:40 +10:00
parent 88cc2e951c
commit 43a663948c

View file

@ -1143,7 +1143,6 @@ LuaInstance::every_point_one_seconds ()
int int
LuaInstance::set_state (const XMLNode& node) LuaInstance::set_state (const XMLNode& node)
{ {
LocaleGuard lg;
XMLNode* child; XMLNode* child;
if ((child = find_named_node (node, "ActionScript"))) { if ((child = find_named_node (node, "ActionScript"))) {
@ -1276,7 +1275,6 @@ LuaInstance::interactive_add (LuaScriptInfo::ScriptType type, int id)
XMLNode& XMLNode&
LuaInstance::get_action_state () LuaInstance::get_action_state ()
{ {
LocaleGuard lg;
std::string saved; std::string saved;
{ {
luabridge::LuaRef savedstate ((*_lua_save)()); luabridge::LuaRef savedstate ((*_lua_save)());