Upgrading building: number of wares in stock window not updated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After upgrading a building, the number of ware in stock doesn't match the number of wares really present in the game.
How to reproduce:
start a new game and immediatly build a metalworkshop
As soon as the construction is over, stop the production.
wait until carriers fill the workshop with needed wares (iron + wood)
Starting with the headquarter only, you should have 12 iron pieces - 8 in the workshop and 4 in headquarter.
watch the statistics-stock window.
Keeping this window open, upgrade the workshop.
Note how the iron counter on stock goes down by 1. (why?) - 11 iron pieces.
wait until the end of upgrade process than stop production of the axefactory and wait until carriers fill the axefactory.
Looking the stock window you'll see that the total of iron is now 11, but only 4 are in the axefactory and 0 remains in the headquarter.
So where the other 7 (+1 disappeared at the beginning of the upgrade process) are? they are lost, it's ok, but the stock window should be update accordingly
Also, is it normal that if you stop the production of a building its internal "reserve" is not filled?
You can test this pausing the game as soon as the workshop has been built and sometime you will found that less than 8 pieces of iron are delivered.
Related branches
- Widelands Developers: Pending requested
-
Diff: 13 lines (+2/-1)1 file modifiedsrc/economy/wares_queue.cc (+2/-1)
Changed in widelands: | |
milestone: | none → build18-rc1 |
This sounds like a duplicate of bug 726139. Could you check if this is the same as your issue, or if there is some separate problem when updating buildings?