Skip to content

Commit 1a5dedd

Browse files
committed
Merge branch 'master' of https://github.com/JasperGeurtz/JBWAPI
2 parents 082f2a0 + 18b121f commit 1a5dedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/bwapi/types/UnitTypeContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,10 +1507,10 @@ private static List<Map<UnitType, Integer>> reqUnitsInit() {
15071507
List<Map<UnitType, Integer>> req = new ArrayList<>(UnitType.values().length);
15081508
// Add the whatBuilds types to the required units map
15091509
for (UnitType i : UnitType.values()) {
1510-
reqUnitsMap.add(new HashMap<>());
1510+
req.add(new HashMap<>());
15111511
Map.Entry<UnitType, Integer> wb = i.whatBuilds();
15121512
if ( wb.getKey() != UnitType.None ) {
1513-
reqUnitsMap.get(i.id).put(wb.getKey(), wb.getValue());
1513+
req.get(i.id).put(wb.getKey(), wb.getValue());
15141514
}
15151515
}
15161516

0 commit comments

Comments
 (0)