[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[glob2-devel] New feature and error in GameGUI.cpp:4221 GameGUI::initUni
From: |
Leo Wandersleb |
Subject: |
[glob2-devel] New feature and error in GameGUI.cpp:4221 GameGUI::initUnitCount() |
Date: |
Mon, 29 Jan 2007 01:06:29 +0100 |
User-agent: |
Icedove 1.5.0.9 (X11/20061220) |
Hi *, hi nct
I finally committed the control for random maps that are symmetric by repeating
the same area 1,2,4,8,16,32 times. by testing i ran into an error i haven't
generated to my best knowledge. it has to do with initialization of the
worker-counts.
i removed that part by commenting it out. sorry i couldn't fix it otherwise :/
NCT please review! It was your change as of the 7th of January i guess.
in GameGUI.cpp:4221 I get an error (Segmentation fault)
Also I'm a bit confused why I can't make out the source of the error.
in the function
void GameGUI::initUnitCount(void)
{
unitCount[0] = globalContainer->settings.swarmUnit0c;
...
there's something wrong with unitCount
unitCount is defined in GameGUI.h as:
#define NUMBER_BUILDING_TYPE_NUM_WITH_PREDEFINED_UNIT_COUNT 50
int unitCount[NUMBER_BUILDING_TYPE_NUM_WITH_PREDEFINED_UNIT_COUNT];
Greetings, Leo Wandersleb
- [glob2-devel] New feature and error in GameGUI.cpp:4221 GameGUI::initUnitCount(),
Leo Wandersleb <=