#284 double-destroy in same frame fixed

This commit is contained in:
Chris Forbes
2010-10-14 18:02:15 +13:00
parent 42092fe6dd
commit 1794625cea

View File

@@ -194,6 +194,8 @@ namespace OpenRA
{ {
World.AddFrameEndTask( w => World.AddFrameEndTask( w =>
{ {
if (Destroyed || !IsInWorld) return;
World.Remove( this ); World.Remove( this );
World.traitDict.RemoveActor( this ); World.traitDict.RemoveActor( this );
Destroyed = true; Destroyed = true;