Commit 19e87fb
committed
Fix field factory blocking regular build options
The check in line 265 treated field build options like a map, but
it was actually an array. There are ~120 units there so anything
with a unitDefID below 120 was not buildable by Support Comms.
The only way this worked is that the engine happens to assign defs
IDs alphabetically, and all vanilla buildings happen to have names
above 120 (mostly thanks to the many dynamic commander def clones).1 parent 021d4a9 commit 19e87fb
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
| 274 | + | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments