Do not fire script triggers while the world is being destroyed

This commit is contained in:
Oliver Brakmann
2015-06-21 19:37:25 +02:00
parent e269a74b3e
commit fbd5938f3f
2 changed files with 49 additions and 0 deletions

View File

@@ -379,8 +379,12 @@ namespace OpenRA
}
}
public bool Disposing;
public void Dispose()
{
Disposing = true;
frameEndActions.Clear();
// Dispose newer actors first, and the world actor last