diff --git a/src/lua_hooklib.c b/src/lua_hooklib.c index ca59ab5b7..d9344f65f 100644 --- a/src/lua_hooklib.c +++ b/src/lua_hooklib.c @@ -1386,6 +1386,7 @@ boolean LUAh_MusicChange(const char *oldname, char *newname, UINT16 *mflags, boo return false; lua_settop(gL, 0); + lua_pushcfunction(gL, LUA_GetErrorMessage); for (hookp = roothook; hookp; hookp = hookp->next) if (hookp->type == hook_MusicChange) @@ -1399,7 +1400,7 @@ boolean LUAh_MusicChange(const char *oldname, char *newname, UINT16 *mflags, boo lua_pushinteger(gL, *position); lua_pushinteger(gL, *prefadems); lua_pushinteger(gL, *fadeinms); - if (lua_pcall(gL, 7, 6, 0)) { + if (lua_pcall(gL, 7, 6, 1)) { CONS_Alert(CONS_WARNING,"%s\n",lua_tostring(gL,-1)); lua_pop(gL, 1); continue;