Fixed null reference exception if a statuseffect removes an item when a round is not running. Closes #385
This commit is contained in:
@@ -378,7 +378,7 @@ namespace Barotrauma
|
||||
{
|
||||
foreach (Item item in targets.FindAll(t => t is Item).Cast<Item>())
|
||||
{
|
||||
Entity.Spawner.AddToRemoveQueue(item);
|
||||
Entity.Spawner?.AddToRemoveQueue(item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user