(ee53e1507) Fixed crashing when a StatusEffect causes an item to be used on a target. Closes #1466
This commit is contained in:
@@ -1527,13 +1527,16 @@ namespace Barotrauma
|
||||
|
||||
if (!picked) return false;
|
||||
|
||||
if (picker.SelectedConstruction == this)
|
||||
if (picker != null)
|
||||
{
|
||||
if (picker.IsKeyHit(InputType.Select) || forceSelectKey) picker.SelectedConstruction = null;
|
||||
}
|
||||
else if (selected)
|
||||
{
|
||||
picker.SelectedConstruction = this;
|
||||
if (picker.SelectedConstruction == this)
|
||||
{
|
||||
if (picker.IsKeyHit(InputType.Select) || forceSelectKey) picker.SelectedConstruction = null;
|
||||
}
|
||||
else if (selected)
|
||||
{
|
||||
picker.SelectedConstruction = this;
|
||||
}
|
||||
}
|
||||
|
||||
#if CLIENT
|
||||
|
||||
Reference in New Issue
Block a user