SetCurrentSong(nil) is valid

This commit is contained in:
Glenn Maynard
2006-10-15 01:47:22 +00:00
parent 2478ec0873
commit 0833c198e3
+1 -1
View File
@@ -1847,7 +1847,7 @@ public:
static int SetCurrentSong( T* p, lua_State *L )
{
if( lua_isnil(L,1) ) { p->m_pCurSong.Set( NULL ); }
else { Song *pS = Luna<Song>::check(L,1); p->m_pCurSong.Set( pS ); }
else { Song *pS = Luna<Song>::check( L, 1, true ); p->m_pCurSong.Set( pS ); }
return 0;
}
static int GetCurrentSteps( T* p, lua_State *L )