From ee742856b21ac027217b38d6a5d7426c91f2a11e Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Fri, 10 Jun 2011 20:39:31 -0500 Subject: [PATCH] fix this up --- src/Song.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Song.cpp b/src/Song.cpp index 926ac196d1..8cf6d352a7 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -1504,9 +1504,10 @@ public: static int GetBackgroundPath( T* p, lua_State *L ) { RString s = p->GetBackgroundPath(); - if( s.empty() ) - return 0; - lua_pushstring(L, s); + if( !s.empty() ) + lua_pushstring(L, s); + else + lua_pushnil(L); return 1; } static int GetCDTitlePath( T* p, lua_State *L ) { RString s = p->GetCDTitlePath(); if( s.empty() ) return 0; LuaHelpers::Push(L, s); return 1; }