stratagus-cvs
[Top][All Lists]
Advanced

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

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


From: Mohydine
Subject: [Stratagus-CVS] stratagus/src/ui menus.c
Date: Mon, 27 Oct 2003 18:15:28 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Mohydine <address@hidden>       03/10/27 18:15:27

Modified files:
        src/ui         : menus.c 

Log message:
        fixed crash when retrieving list of online games

Patches:
Index: stratagus/src/ui/menus.c
diff -u stratagus/src/ui/menus.c:1.577 stratagus/src/ui/menus.c:1.578
--- stratagus/src/ui/menus.c:1.577      Mon Oct 27 03:50:34 2003
+++ stratagus/src/ui/menus.c    Mon Oct 27 18:15:27 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: menus.c,v 1.577 2003/10/27 08:50:34 mr-russ Exp $
+//     $Id: menus.c,v 1.578 2003/10/27 23:15:27 mohydine Exp $
 
 //@{
 
@@ -7390,7 +7390,8 @@
 
     // Don't display slots not in use
     //FIXME: HardCoded Number of Items in list
-    for (; j <= 5 * (numparams + 1); j += numparams + 1) {
+    // 5 is the hardcoded value
+    for (; j <= numparams * 5; j += numparams + 1) {
        // fill the menus with the right info.
        menu->Items[j].d.text.text = NULL;
        menu->Items[j + 1].d.text.text = NULL;




reply via email to

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