fix: Disposal of dead coroutine cause NullReference Exception
@@ -487,7 +487,8 @@ public class LuaState : IDisposable
public void Dispose()
{
- if (CoreData!.CallStack.Count != 0)
+ if(CoreData == null) return;
+ if (CoreData.CallStack.Count != 0)
throw new InvalidOperationException("This state is running! Call stack is not empty!!");
}