lilijreey / bwapi

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

Broodwar->canUpgrade(unit, type) problem #364

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. if (Broodwar->canUpgrade(unit, type))
2. give me true if a unit can´t upgrade sometimes

What is the expected output? I should get false
What do you see instead? sometimes true

What version of the product are you using? 1.16.1
On what operating system? Windows Vista

Please provide any additional information below.

I am trying to upgrade EngineeringBay for terran
and starting to push all my upgrades to a vector, total 6.
After that I call Broodwar->canUpgrade(unit, type) at regular 
times. And even if I have not build a science building it give me 
true sometimes after I have upgraded to level 1.

Original issue reported on code.google.com by jerry.ra...@gmail.com on 16 Mar 2011 at 10:04

GoogleCodeExporter commented 9 years ago
This will be fixed shortly.

Original comment by AHeinerm on 16 Mar 2011 at 6:39

GoogleCodeExporter commented 9 years ago
Fixed in r3540.

Original comment by AHeinerm on 16 Mar 2011 at 8:59