Make more uids nullable (#5794)
This commit is contained in:
@@ -64,10 +64,11 @@ namespace Content.Client.Wall.Components
|
||||
{
|
||||
base.Shutdown();
|
||||
|
||||
EntityUid tempQualifier = _overlayEntity;
|
||||
if (tempQualifier != null)
|
||||
// _overlayEntity is non-nullable as it is set on startup.
|
||||
// Should also never be default but might as well check.
|
||||
if (_overlayEntity.Valid)
|
||||
{
|
||||
_entMan.DeleteEntity(tempQualifier);
|
||||
_entMan.DeleteEntity(_overlayEntity);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user