From 0cff62ed5ea1e4964817bc6efdff523f7b63342e Mon Sep 17 00:00:00 2001 From: tobigun Date: Tue, 5 Feb 2008 21:53:12 +0000 Subject: bugfix: ResetSingTemp prevented a song from being played twice ("File not found" error). The error is due the change of TSong from a record to a class. This is because CurrentSong = CatSongs.Song[index] won't copy the whole data anymore but just a pointer. So the paths of CatSongs.Song[index] will be set to '' too what is not desired. Jay: Please revise this. If i remember correctly you wanted to set CurrentSong to nil instead of setting the paths to an empty string. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@830 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UFiles.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Game/Code/Classes/UFiles.pas b/Game/Code/Classes/UFiles.pas index b65dcbf2..495e8a4a 100644 --- a/Game/Code/Classes/UFiles.pas +++ b/Game/Code/Classes/UFiles.pas @@ -51,6 +51,7 @@ begin Player[pet].HighNut := -1; end; + (* FIXME //Reset Path and Filename Values to Prevent Errors in Editor if assigned( CurrentSong ) then begin @@ -58,6 +59,7 @@ begin CurrentSong.Path := ''; CurrentSong.FileName := ''; end; + *) // CurrentSong := nil; end; -- cgit v1.2.3