Fix evalmath not properly getting sound effects

This commit is contained in:
NepDisk 2026-02-15 10:16:49 -05:00
parent 04059a42e5
commit 3ed99e27ef

View file

@ -372,7 +372,7 @@ static int ScanConstants(lua_State *L, boolean mathlib, const char *word)
else if (fastncmp("sfx_",word,4)) {
p = word+4;
for (i = 0; i < NUMSFX; i++)
if (S_sfx[i].name && fastcmp(p, S_sfx[i].name)) {
if (S_sfx[i].name && fasticmp(p, S_sfx[i].name)) {
CacheAndPushConstant(L, word, i);
return 1;
}