Merge branch 'fix-musicchange-hook' into 'next'

Fix MusicChange hook crashing when called

See merge request STJr/SRB2!1671
This commit is contained in:
LJ Sonic 2021-12-05 17:02:20 +00:00
commit 066a9d1534

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);