From f6230532df830d5da0e0bd0934ab4076d9ef0b03 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 31 Mar 2026 16:18:20 +0000 Subject: [PATCH] fix: change SceneColor::Get parameter from unsigned char to uint8_t Agent-Logs-Url: https://github.com/DarkflameUniverse/DarkflameServer/sessions/804e2235-77e8-458f-9a0b-519c496ba3b3 Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com> --- dCommon/dClient/SceneColor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dCommon/dClient/SceneColor.h b/dCommon/dClient/SceneColor.h index bdee3024..f9139957 100644 --- a/dCommon/dClient/SceneColor.h +++ b/dCommon/dClient/SceneColor.h @@ -2,6 +2,7 @@ #define SCENE_COLOR_H #include "NiColor.h" +#include #include class SceneColor { @@ -158,7 +159,7 @@ public: TEMPLATE_COLORS[145] = NiColor(1.0f, 0.682353f, 0.2588235f); } - const NiColor& Get(unsigned char index) const { + const NiColor& Get(uint8_t index) const { return (index < 146) ? TEMPLATE_COLORS[index] : FALLBACK_COLOR; }