There were a few threads complaining about this issue but none of them outlined how to reproduce the issue, as far as I'm aware. It refers to the actual calculation of building licenses, not the minor glitch that occurs from time to time where you destroy a building, but don't receive a new license, or the -1 building license bug.
ISSUE I
- I have four building licenses remaining.
- I place one building and it shows I have three building licenses remaining.
- I place a second building and it shows I have two building licenses remaining.
- I try to place a third, but all the buildings are greyed out, saying 'Maximum building count reached'.
I now have to wait until a building on the queue has finished before I can place my third building.
ISSUE II
- I have three building licenses remaining.
- I place one building and it shows I have two building licenses remaining.
- I place a second building and it shows I have one building license remaining.
- I try to place a third, but all the buildings are greyed out, saying 'Maximum building count reached'.
In this case, I have to wait until both buildings have finished before I can place my third building.
REASON FOR THE ISSUE
The building licenses field on the toolbar at the top of the screen shows:
Total Building Licenses Available - Buildings in Building Queue = Toolbar Value for Building Licenses Available
so, if there are 5 building licenses available and 2 buildings in the queue, it will show 3 at the top.
This creates an issue because, when you try to select a new building from a build menu, the game checks a couple of things, such as whether you have unlocked the building, whether the build queue is full or whether you have enough building licenses available. It finds out how many building licenses you have available by:
Toolbar Value for Building Licenses Available - Buildings in Building Queue
so, if there are 5 building licenses available and 2 buildings in the queue, it will show 3 at the top. But the building menu will believe there is only 1 license left because it will subtract the buildings in the queue again for a second time.
This explains both Issue I and Issue II; in the former case, when you try to place your third building, the building menu will think you have 4 licenses left, minus the 2 in the queue, minus the 2 in the queue again, i.e. 0 licenses remaining. You can apply the same logic to the latter in your head.
HOW TO FIX THE ISSUE
I'm not a professional programmer, but my guess it is an issue with an incorrect variable within an if statement.