aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-06-10 09:12:53 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-06-10 09:12:53 +0000
commit155910dbe253d5c1bf8e2287c27f0d9dffefa383 (patch)
tree0b64191bcb2ee1e55269bb74b8d295bd58ba2b99 /Game
parent5575456e1071a7408bc91a6c9b9277f4fce1e785 (diff)
downloadusdx-155910dbe253d5c1bf8e2287c27f0d9dffefa383.tar.gz
usdx-155910dbe253d5c1bf8e2287c27f0d9dffefa383.tar.xz
usdx-155910dbe253d5c1bf8e2287c27f0d9dffefa383.zip
Added a workaround for EInvalidPointer Exception when a not existing Equalizer-
Color is specified in Theme git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@254 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UThemes.pas5
1 files changed, 5 insertions, 0 deletions
diff --git a/Game/Code/Classes/UThemes.pas b/Game/Code/Classes/UThemes.pas
index 78875dec..079ceb00 100644
--- a/Game/Code/Classes/UThemes.pas
+++ b/Game/Code/Classes/UThemes.pas
@@ -1002,6 +1002,11 @@ begin
Song.Equalizer.ColR := Color[I].RGB.R;
Song.Equalizer.ColG := Color[I].RGB.G;
Song.Equalizer.ColB := Color[I].RGB.B;
+ end
+ else begin
+ Song.Equalizer.ColR := 0;
+ Song.Equalizer.ColG := 0;
+ Song.Equalizer.ColB := 0;
end;
//Load Equalizer Pos and Size from Theme Mod End