Merge lp:~widelands-dev/widelands/bug-1806903-worker-default-quantities into lp:widelands
Proposed by
Notabilis
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8952 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1806903-worker-default-quantities | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
14 lines (+2/-2) 1 file modified
src/logic/playercommand.cc (+2/-2) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1806903-worker-default-quantities | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+361155@code.launchpad.net |
Commit message
Fixing copy&paste bug with worker quantity defaults.
Description of the change
Resetting the economy targets of workers (i.e., recruits and secondary carriers) resulted in strange amounts. The problem was a copy&paste bug when creating the relevant reset code. The code assigned the default economy amounts of the respective wares with the same description index, resulting in either small strange amounts (taken from some "random" ware) or the value 254 if no ware with the respective description index exists.
Fixed by calling the correct functions for workers instead of the ones for wares.
To post a comment you must log in.
Continuous integration builds have changed state:
Travis build 4349. State: failed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 470216451. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_1806903_ worker_ default_ quantities- 4143.
Appveyor build 4143. State: failed. Details: https:/