|
@@ -487,7 +487,8 @@ public class LuaState : IDisposable
|
|
|
|
|
|
|
|
public void Dispose()
|
|
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!!");
|
|
throw new InvalidOperationException("This state is running! Call stack is not empty!!");
|
|
|
}
|
|
}
|