(1631eb0fc) Added a null check to ContextualTutorial.IsFlooding
This commit is contained in:
@@ -662,7 +662,7 @@ namespace Barotrauma.Tutorials
|
||||
if (gap.Submarine == null) continue;
|
||||
if (gap.Submarine.IsOutpost) continue;
|
||||
if (gap.Submarine != Submarine.MainSub) continue;
|
||||
if (gap.FlowTargetHull.WaterPercentage <= 0.0f) continue;
|
||||
if (gap.FlowTargetHull == null || gap.FlowTargetHull.WaterPercentage <= 0.0f) continue;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user