From 155910dbe253d5c1bf8e2287c27f0d9dffefa383 Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Sun, 10 Jun 2007 09:12:53 +0000 Subject: 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 --- Game/Code/Classes/UThemes.pas | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Game/Code') 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 -- cgit v1.2.3