Commit 2cab813f authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed #72 Coroutine NRE .

parent 1523aa96
Subproject commit 2cbb3f6bf29d7e337c1894637f3a894abcc76483
Subproject commit b0376e18f8fb50447aec2370533b394e79bbba18
Subproject commit ead739ddf2cce1f6db53330cee1bfae8db72234c
Subproject commit 2752601e979483ced1f0681772bbe68b16c56adb
......@@ -58,11 +58,16 @@ namespace NLua
}
public ObjectTranslator Find (LuaState luaState)
{
if (!translators.ContainsKey(luaState))
return null;
{
if (translators.ContainsKey (luaState))
return translators [luaState];
LuaState main = LuaCore.LuaNetGetMainState (luaState);
if (translators.ContainsKey (main))
return translators [main];
return translators [luaState];
return null;
}
public void Remove (LuaState luaState)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment