Fix crash when clicking a deleted entity in the dropdown list (#1475)
This commit is contained in:
@@ -443,6 +443,13 @@ namespace Content.Client.GameObjects.EntitySystems
|
||||
if (args.Function == EngineKeyFunctions.Use ||
|
||||
args.Function == ContentKeyFunctions.Point)
|
||||
{
|
||||
// TODO: Remove an entity from the menu when it is deleted
|
||||
if (_entity.Deleted)
|
||||
{
|
||||
_master.CloseAllMenus();
|
||||
return;
|
||||
}
|
||||
|
||||
var inputSys = _master.EntitySystemManager.GetEntitySystem<InputSystem>();
|
||||
|
||||
var func = args.Function;
|
||||
|
||||
Reference in New Issue
Block a user