Skip to content

Commit 44952eb

Browse files
authored
Fix some minor hud config color errors (#6881)
1 parent 95d21a4 commit 44952eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

code/hud/hudconfig.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ SCP_vector<std::pair<SCP_string, BoundingBox>> HC_gauge_mouse_coords;
320320
// Names and XSTR IDs for these come from HC_text above
321321
hc_col HC_colors[NUM_HUD_COLOR_PRESETS] =
322322
{
323-
{0, 255, 0, "", -1}, // Green
324-
{67, 123, 203, "", -1}, // Blue
325-
{255, 197, 0, "", -1}, // Amber
323+
{0, 255, 0, "Green", 1457}, // Green
324+
{67, 123, 203, "Blue", 1456}, // Blue
325+
{255, 197, 0, "Amber", 1455}, // Ambers
326326
};
327327

328328
int HC_default_color = HUD_COLOR_PRESET_1;

code/scripting/api/objs/hudconfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ SCP_string hud_color_preset_h::getName() const
7171

7272
bool hud_color_preset_h::isValid() const
7373
{
74-
return preset >= 0 && preset < static_cast<int>(HC_preset_filenames.size());
74+
return preset >= 0 && preset < NUM_HUD_COLOR_PRESETS;
7575
}
7676

7777
//**********HANDLE: hud color preset

0 commit comments

Comments
 (0)