MP Lua: MusicExists Mixed D+C fix (buildbots)

This commit is contained in:
mazmazz 2018-09-19 19:29:38 -04:00
parent 950e2ddd1a
commit 37f27888c8

View file

@ -1906,6 +1906,8 @@ static int lib_sMusicInfo(lua_State *L)
static int lib_sMusicExists(lua_State *L)
{
boolean checkMIDI = lua_opttrueboolean(L, 2);
boolean checkDigi = lua_opttrueboolean(L, 3);
#ifdef MUSICSLOT_COMPATIBILITY
const char *music_name;
UINT32 music_num;
@ -1933,8 +1935,6 @@ static int lib_sMusicExists(lua_State *L)
#else
const char *music_name = luaL_checkstring(L, 1);
#endif
boolean checkMIDI = lua_opttrueboolean(L, 2);
boolean checkDigi = lua_opttrueboolean(L, 3);
NOHUD
lua_pushboolean(L, S_MusicExists(music_name, checkMIDI, checkDigi));
return 1;