1
0
mirror of synced 2025-01-31 03:53:44 +01:00

Fix crashes if a non implemented lua function is called (notably reloadlanguage)

This commit is contained in:
0auBSQ 2024-08-12 16:03:52 +09:00
parent 9ce9049131
commit 603bf9d117

View File

@ -68,6 +68,7 @@ namespace OpenTaiko {
protected object[] RunLuaCode(LuaFunction luaFunction, params object[] args) {
try {
if (luaFunction == null) return null;
var ret = luaFunction.Call(args);
LuaScript.State.GarbageCollector(KeraLua.LuaGC.Collect, 0);
return ret;