From 8d31fd845c65367301f36faac77d86cb929ef69c Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Wed, 9 Dec 2009 16:25:08 +0000 Subject: fixed lua function ScreenSing.GetLines it may return an old song now, when it is called from at uncommon parts of code. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2007 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Lua/src/lua/ULuaScreenSing.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lua/src/lua/ULuaScreenSing.pas b/Lua/src/lua/ULuaScreenSing.pas index 5382d1ca..cdf83e35 100644 --- a/Lua/src/lua/ULuaScreenSing.pas +++ b/Lua/src/lua/ULuaScreenSing.pas @@ -414,7 +414,7 @@ function ULuaScreenSing_GetSongLines(L: Plua_State): Integer; cdecl; I, J: Integer; begin Result := 1; - if (Display.CurrentScreen = @ScreenSing) and (Length(Lines) >= 1) then + if (Length(Lines) >= 1) then begin lua_ClearStack(L); -- cgit v1.2.3