fix deleted entity exception (#1208)

This commit is contained in:
L.E.D
2020-08-02 18:40:59 -04:00
committed by GitHub
parent 714e51c0e1
commit b983863c90

View File

@@ -282,7 +282,7 @@ namespace Robust.Server.GameObjects
{
var ent = child!;
do
while (ent != null && !ent.Deleted)
{
if (set.Add(ent))
{
@@ -295,7 +295,7 @@ namespace Robust.Server.GameObjects
// Already processed this entity once.
break;
}
} while (ent != null && !ent.Deleted);
}
}
}