Fixed crashing when a round starts if the sub has been saved while a fabricator was running. Closes #398

This commit is contained in:
Joonas Rikkonen
2018-05-07 11:15:12 +03:00
parent bdc9ca6d59
commit 7dd4dca2ed

View File

@@ -241,6 +241,12 @@ namespace Barotrauma.Items.Components
public override void Update(float deltaTime, Camera cam)
{
if (fabricatedItem == null)
{
CancelFabricating();
return;
}
#if CLIENT
if (progressBar != null)
{