Fix MusicChange hook crashing when called

BRUH MOMENT BRUH MOMENT
PREPARE THE HALL OF SHAME
This commit is contained in:
LJ Sonic 2021-12-05 17:59:33 +01:00
parent 1acd0f6bac
commit f271f88c7f

View file

@ -1117,7 +1117,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);