From 0f266198ca6040ad64aee3e57255f12bce0dc828 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 27 May 2023 18:48:21 +0100 Subject: [PATCH] ACS_GetColorFromString; Fix copypaste error indexing into skin array rather than color array Discovered while writing the following commit. --- src/acs/call-funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acs/call-funcs.cpp b/src/acs/call-funcs.cpp index 1f9904ccd..4bfca2960 100644 --- a/src/acs/call-funcs.cpp +++ b/src/acs/call-funcs.cpp @@ -293,7 +293,7 @@ static bool ACS_GetColorFromString(const char *word, skincolornum_t *type) { for (int i = 0; i < numskincolors; i++) { - if (fastcmp(word, skins[i].name)) + if (fastcmp(word, skincolors[i].name)) { *type = static_cast(i); return true;