Open degorelick opened 4 years ago
Hi Dave, thanks for submitting the issue and sorry about the awfully delayed reply. I've been busy for a while helping a Brazilian MS student using WaterPaths and her schedule is quite tight, which is why I haven't gotten into this yet.
If you have the time and the disposition, would you mind creating a unit test for this and submitting a pull request with your bug fix?
Lines 388-401 of InfrastructureManager.cpp on master branch will not properly remove a built project from the demand_infra_construction_order vector if any ROF-triggered projects exist (i.e. if rof_infra_construction_order is not empty) because of the if-elseif structure. Given increasing demand, this can result in repeated implementation of the same demand-triggered project. A solution would be replacing these lines with the following: