Insomniumm / bwsal

Automatically exported from code.google.com/p/bwsal
0 stars 0 forks source link

ConstructionManager Crashes Game After First Supply Depot #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile rev. 96 of BWSAL.
2. Start Brood War, use BasicAIModule as AI.
3. Create a game on Astral Balance, choose Terran for your race.
4. Wait for the AI to build some workers and a supply depot.

Behavior: game crashes after the first supply depot is finished.
Expected: game continues.

Debugging information:
Invalid memory access in the ConstructionManager.cpp at line 259.
Seems like b->type.tileHeight() addresses uninitialized memory.

---- CODE ----
  this->placer->freeTiles(b->tilePosition, b->type.tileWidth(),
b->type.tileHeight());
---- CODE ----

Original issue reported on code.google.com by vasil...@gmail.com on 7 Sep 2009 at 6:28

GoogleCodeExporter commented 8 years ago
Fixed by revision 101.

Original comment by vasil...@gmail.com on 7 Sep 2009 at 8:30