MP Lua: MusicExists Mixed D+C fix (buildbots)
This commit is contained in:
1 parent
950e2ddd1a
commit
37f27888c8
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user