Fix MusicChange hook crashing when called

This commit is contained in:
Alug committed 2024-11-21 20:34:01 +01:00
1 parent 11992d2e08
commit 4477f5ab93
1 file changed
+1 -1
+1 -1
View File
@@ -957,7 +957,7 @@ int LUA_HookMusicChange(const char *oldname, struct MusicChange *param)
lua_pushstring(gL, oldname);/* the only constant value */
lua_pushstring(gL, param->newname);/* semi constant */
for (k = 0; k <= map->numHooks; ++k)
for (k = 0; k < map->numHooks; ++k)
{
get_hook(&hook, map->ids, k);