diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-09 16:25:08 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-09 16:25:08 +0000 |
commit | 8d31fd845c65367301f36faac77d86cb929ef69c (patch) | |
tree | b721c7a2c64e976c18a3d90e8f564a906a8de213 | |
parent | 6a700717c32402a18e78757ed8f9d9b690157722 (diff) | |
download | usdx-8d31fd845c65367301f36faac77d86cb929ef69c.tar.gz usdx-8d31fd845c65367301f36faac77d86cb929ef69c.tar.xz usdx-8d31fd845c65367301f36faac77d86cb929ef69c.zip |
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
Diffstat (limited to '')
-rw-r--r-- | Lua/src/lua/ULuaScreenSing.pas | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|