F1rrel / RenewedVillageGrowth

RVG is a Game Script that manages towns growth in a new and balanced way, making growth depend on varied cargo delivery (passengers, food, goods, ...) and sustained transportation of passangers and mails. The script supports Baseset, FIRS, ECS, YETI and NAIS industries. It is born as a combination of keoz's Renewed City Growth GS and Sylf's City Growth Limiter GS.
GNU General Public License v2.0
8 stars 15 forks source link

Fix: Funding failed continuously when no industry could be funded #120

Closed F1rrel closed 1 year ago

F1rrel commented 1 year ago

When selecting next industry for funding, when all industries were processing or ignored, it would return index 0, which could cause trying to fund industry with index 0 in a never ending loop. Fixed by checking if the list of valid industries for funding is empty.