#284 double-destroy in same frame fixed
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user