aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Menu
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-04-29 18:29:42 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-04-29 18:29:42 +0000
commitcc06446d0a651113083478fda94dfaa9a25d1d7e (patch)
tree41fe1ca917d2f7805adcd9e216fee40a19cf43a2 /Game/Code/Menu
parentbda4fa8e57ca63a1d591433f120b4226d6a5d327 (diff)
downloadusdx-cc06446d0a651113083478fda94dfaa9a25d1d7e.tar.gz
usdx-cc06446d0a651113083478fda94dfaa9a25d1d7e.tar.xz
usdx-cc06446d0a651113083478fda94dfaa9a25d1d7e.zip
Commented some Debuging Outputs in ULog
Fixed a Bug in ButtonCollection that causes a Crash when UpButton is Pressed at the Last Button Added ShortCut E in MainMenu for Editor git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@150 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Menu')
-rw-r--r--Game/Code/Menu/UMenu.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Code/Menu/UMenu.pas b/Game/Code/Menu/UMenu.pas
index fc217dba..c30b5c5c 100644
--- a/Game/Code/Menu/UMenu.pas
+++ b/Game/Code/Menu/UMenu.pas
@@ -1367,7 +1367,7 @@ begin
begin
InteractPrev;
//If ButtonCollection with more than 1 Entry then Select Last Entry
- if (ButtonCollection[Button[Interactions[Interaction].Num].Parent-1].CountChilds > 1) then
+ if (Button[Interactions[Interaction].Num].Parent <> 0) AND (ButtonCollection[Button[Interactions[Interaction].Num].Parent-1].CountChilds > 1) then
begin
//Select Last Child
For Num := High(Button) downto 1 do