stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus/src/ui mouse.c


From: address@hidden
Subject: [Stratagus-CVS] stratagus/src/ui mouse.c
Date: 17 Jan 2004 00:35:15 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/01/17 00:35:15

Modified files:
        src/ui         : mouse.c 

Log message:
        Fix Crash when CurrentButtons is not defined

Patches:
Index: stratagus/src/ui/mouse.c
diff -u stratagus/src/ui/mouse.c:1.169 stratagus/src/ui/mouse.c:1.170
--- stratagus/src/ui/mouse.c:1.169      Sat Jan 17 00:03:36 2004
+++ stratagus/src/ui/mouse.c    Sat Jan 17 00:35:14 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: mouse.c,v 1.169 2004/01/16 13:03:36 wizzard Exp $
+//     $Id: mouse.c,v 1.170 2004/01/16 13:35:14 wizzard Exp $
 
 //@{
 
@@ -423,7 +423,7 @@
                                y >= TheUI.ButtonButtons[i].Y &&
                                y < TheUI.ButtonButtons[i].Y + 
TheUI.ButtonButtons[i].Height + 7) {
                        ButtonAreaUnderCursor = ButtonAreaButton;
-                       if (CurrentButtons[i].Pos != -1) {
+                       if (CurrentBottons && CurrentButtons[i].Pos != -1) {
                                ButtonUnderCursor = i;
                                CursorOn = CursorOnButton;
                                MustRedraw |= RedrawButtonPanel;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]