mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Merge branch 'fix-musicchange-hook' into 'next'
Fix MusicChange hook crashing when called See merge request STJr/SRB2!1671
This commit is contained in:
commit
066a9d1534
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue