aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-05 21:53:12 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-02-05 21:53:12 +0000
commit0cff62ed5ea1e4964817bc6efdff523f7b63342e (patch)
treeb9b0d30ca461fef9cbfe3304228af6e8b16e4976 /Game
parentb4371d97f409af8ab9dc942c39f143ae400854da (diff)
downloadusdx-0cff62ed5ea1e4964817bc6efdff523f7b63342e.tar.gz
usdx-0cff62ed5ea1e4964817bc6efdff523f7b63342e.tar.xz
usdx-0cff62ed5ea1e4964817bc6efdff523f7b63342e.zip
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
Diffstat (limited to 'Game')
-rw-r--r--Game/Code/Classes/UFiles.pas2
1 files changed, 2 insertions, 0 deletions
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;