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 ||
|
if (args.Function == EngineKeyFunctions.Use ||
|
||||||
args.Function == ContentKeyFunctions.Point)
|
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 inputSys = _master.EntitySystemManager.GetEntitySystem<InputSystem>();
|
||||||
|
|
||||||
var func = args.Function;
|
var func = args.Function;
|
||||||
|
|||||||
Reference in New Issue
Block a user