From 4590d5c5cfd5a87eb63dd099ca3e58332168f9bb Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Mon, 19 Nov 2018 22:38:54 -0500 Subject: [PATCH] Fix SKINCOLOR_ prefix not registering in Lua --- src/dehacked.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dehacked.c b/src/dehacked.c index c943dbfe..cfa08b45 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -9163,7 +9163,7 @@ static fixed_t find_const(const char **rword) free(word); return r; } - else if (fastncmp("SKINCOLOR_",word,20)) { + else if (fastncmp("SKINCOLOR_",word,10)) { char *p = word+10; for (i = 0; i < MAXTRANSLATIONS; i++) if (fastcmp(p, COLOR_ENUMS[i])) { @@ -9595,7 +9595,7 @@ static inline int lib_getenum(lua_State *L) if (mathlib) return luaL_error(L, "huditem '%s' could not be found.\n", word); return 0; } - else if (fastncmp("SKINCOLOR_",word,20)) { + else if (fastncmp("SKINCOLOR_",word,10)) { p = word+10; for (i = 0; i < MAXTRANSLATIONS; i++) if (fastcmp(p, COLOR_ENUMS[i])) {