diff --git a/Assets/LuaFramework/ToLua/Core/LuaState.cs b/Assets/LuaFramework/ToLua/Core/LuaState.cs index 8019bb738..14bf84212 100644 --- a/Assets/LuaFramework/ToLua/Core/LuaState.cs +++ b/Assets/LuaFramework/ToLua/Core/LuaState.cs @@ -105,9 +105,9 @@ public LuaState() mainState = this; } - float time = Time.realtimeSinceStartup; + float time = Time.realtimeSinceStartup; InitTypeTraits(); - InitStackTraits(); + InitStackTraits(); L = LuaNewState(); LuaException.Init(L); stateMap.Add(L, this); @@ -1276,6 +1276,8 @@ void PushUserData(object o, int reference) { return; } + + translator.Destroyudata(index); } index = translator.AddObject(o); diff --git a/Assets/Plugins/Android/libs/armeabi-v7a/libtolua.so b/Assets/Plugins/Android/libs/armeabi-v7a/libtolua.so index a74e3c289..0e74ac320 100644 Binary files a/Assets/Plugins/Android/libs/armeabi-v7a/libtolua.so and b/Assets/Plugins/Android/libs/armeabi-v7a/libtolua.so differ diff --git a/Assets/Plugins/Android/libs/x86/libtolua.so b/Assets/Plugins/Android/libs/x86/libtolua.so index 9f15c1b3e..1640f6399 100644 Binary files a/Assets/Plugins/Android/libs/x86/libtolua.so and b/Assets/Plugins/Android/libs/x86/libtolua.so differ diff --git a/Assets/Plugins/iOS/libtolua.a b/Assets/Plugins/iOS/libtolua.a index 57cf726c9..10c70b39b 100644 Binary files a/Assets/Plugins/iOS/libtolua.a and b/Assets/Plugins/iOS/libtolua.a differ diff --git a/Assets/Plugins/tolua.bundle/Contents/MacOS/tolua b/Assets/Plugins/tolua.bundle/Contents/MacOS/tolua index e7cbcdc25..fc919705b 100644 Binary files a/Assets/Plugins/tolua.bundle/Contents/MacOS/tolua and b/Assets/Plugins/tolua.bundle/Contents/MacOS/tolua differ diff --git a/Assets/Plugins/x86/tolua.dll b/Assets/Plugins/x86/tolua.dll index 485909d09..48a46b9dc 100644 Binary files a/Assets/Plugins/x86/tolua.dll and b/Assets/Plugins/x86/tolua.dll differ diff --git a/Assets/Plugins/x86_64/tolua.dll b/Assets/Plugins/x86_64/tolua.dll index 655ae5562..5d332f3ee 100644 Binary files a/Assets/Plugins/x86_64/tolua.dll and b/Assets/Plugins/x86_64/tolua.dll differ diff --git a/Assets/Sproto.New.zip b/Assets/Sproto.New.zip index c2adc5ee4..917ff8869 100644 Binary files a/Assets/Sproto.New.zip and b/Assets/Sproto.New.zip differ