mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
fix deleted entity exception (#1208)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user