Skip to content
Snippets Groups Projects
Commit 066a9d15 authored by LJ Sonic's avatar LJ Sonic
Browse files

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

Fix MusicChange hook crashing when called

See merge request !1671
parents 76bbef29 f271f88c
No related branches found
No related tags found
1 merge request!1671Fix MusicChange hook crashing when called
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment