mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix MusicChange hook not returning some values correctly
This commit is contained in:
parent
3fb2a1fba5
commit
e1e57c071b
1 changed files with 3 additions and 3 deletions
|
|
@ -1858,13 +1858,13 @@ boolean LUAh_MusicChange(const char *oldname, char *newname, UINT16 *mflags, boo
|
||||||
if (lua_isboolean(gL, -4))
|
if (lua_isboolean(gL, -4))
|
||||||
*looping = lua_toboolean(gL, -4);
|
*looping = lua_toboolean(gL, -4);
|
||||||
// output 4: position override
|
// output 4: position override
|
||||||
if (lua_isboolean(gL, -3))
|
if (lua_isnumber(gL, -3))
|
||||||
*position = lua_tonumber(gL, -3);
|
*position = lua_tonumber(gL, -3);
|
||||||
// output 5: prefadems override
|
// output 5: prefadems override
|
||||||
if (lua_isboolean(gL, -2))
|
if (lua_isnumber(gL, -2))
|
||||||
*prefadems = lua_tonumber(gL, -2);
|
*prefadems = lua_tonumber(gL, -2);
|
||||||
// output 6: fadeinms override
|
// output 6: fadeinms override
|
||||||
if (lua_isboolean(gL, -1))
|
if (lua_isnumber(gL, -1))
|
||||||
*fadeinms = lua_tonumber(gL, -1);
|
*fadeinms = lua_tonumber(gL, -1);
|
||||||
|
|
||||||
lua_pop(gL, 7); // Pop returned values and error handler
|
lua_pop(gL, 7); // Pop returned values and error handler
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue