Don’t double-remove dead actors from the world.
This commit is contained in:
@@ -204,9 +204,12 @@ namespace OpenRA
|
||||
{
|
||||
World.AddFrameEndTask(w =>
|
||||
{
|
||||
if (Destroyed) return;
|
||||
if (Destroyed)
|
||||
return;
|
||||
|
||||
if (IsInWorld)
|
||||
World.Remove(this);
|
||||
|
||||
World.Remove(this);
|
||||
World.traitDict.RemoveActor(this);
|
||||
Destroyed = true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user