mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Fix MusicChange hook crashing when called
BRUH MOMENT BRUH MOMENT PREPARE THE HALL OF SHAME
This commit is contained in:
parent
1acd0f6bac
commit
f271f88c7f
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