From 168ce83820134c74a8146946c409d5409d0d7868 Mon Sep 17 00:00:00 2001 From: MapleWheels Date: Sun, 1 Mar 2026 17:13:15 -0500 Subject: [PATCH] Fixed potential NRE that shouldn't happen so long as the LuaCsForBarotrauma exists. --- .../ClientSource/LuaCs/Services/ModsGameplaySettingsMenu.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/ClientSource/LuaCs/Services/ModsGameplaySettingsMenu.cs b/Barotrauma/BarotraumaClient/ClientSource/LuaCs/Services/ModsGameplaySettingsMenu.cs index 18c209c22..43c3fc6a7 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/LuaCs/Services/ModsGameplaySettingsMenu.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/LuaCs/Services/ModsGameplaySettingsMenu.cs @@ -94,7 +94,7 @@ internal sealed class ModsGameplaySettingsMenu : ModsSettingsMenu .OrderBy(cp => cp.Name) .ToImmutableArray(); var packageSelectionList = GUIUtil.Dropdown(layoutGroup, cp => cp.Name, null, - packages, packages[0], cp => + packages, packages.Length > 0 ? packages[0] : null, cp => { _selectedContentPackage = cp; _selectedCategory = string.Empty;