Blizzard / Blizzard/s2client-api
Data for BattleCruiser weapon's are empty
Open
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 280
- PR merge metrics
- No merged PRs in 30d
Description
Code something like this (not actual tested code), fails assertion because weapons is empty.
```
const UnitTypes& data = client->getObservation()->GetUnitTypeData();
assert(!data[UnitTypeID(UNIT_TYPEID::TERRAN_BATTLECRUISER)].weapons.empty());
```
This was called in OnGameStart(). Many other units have their weapons data set properly. Here I've used game version Base74741.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.