Commits

Jason MacWilliams committed 213b468

fixed allocation bug in researchscene

Comments (0)

Files changed (1)

MAX/ResearchScene.cpp

 
 ResearchScene::ResearchScene() : Scene("scenes/researchgui.xml"), player(NULL) {
   transparent = true;
+  for (int i=0; i<NUM_RESEARCH_FIELDS; i++) {
+    alloc[i] = 0;
+  }
 }
 
 ResearchScene::ResearchScene(Player * player) : Scene("scenes/researchgui.xml"), player(player) {
   transparent = true;
+  for (int i=0; i<NUM_RESEARCH_FIELDS; i++) {
+    alloc[i] = 0;
+  }
 }
 
 ResearchScene::~ResearchScene() {