Skip to content

Commit 36a7afe

Browse files
committed
Minor fixup to player color fix for parity with vanilla behaviour
1 parent 1c121d0 commit 36a7afe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

YRpp

src/Misc/Hooks.UI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ DEFINE_HOOK(0x69A317, SessionClass_PlayerColorIndexToColorSchemeIndex, 0x0)
420420
// Vanilla behaviour.
421421
if (isRandom)
422422
index = ColorScheme::PlayerColorToColorSchemeLUT[PlayerColorSlot::White];
423-
else
423+
else if (index < PlayerColorSlot::Count)
424424
index = ColorScheme::PlayerColorToColorSchemeLUT[index];
425425
}
426426

0 commit comments

Comments
 (0)