Merge lp:~widelands-dev/widelands/bug-1451078-fix into lp:widelands
Proposed by
Teppo Mäenpää
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 7453 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1451078-fix | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
37 lines (+6/-7) 1 file modified
src/logic/trainingsite.cc (+6/-7) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1451078-fix | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+258118@code.launchpad.net |
Description of the change
Fixed a simple bug (changed a break-statement into a continue-statement in the loop where trainingsite checks which soldiers may stay further).
To post a comment you must log in.
This fix is very weird. The check is there to drop the soldier if its level is higher than the maximum level that it can get trained to. Removing this check might mean that soldiers trained to max won't be kicked out.
So, my guess is that the real bug lies with setting the max value. I think this needs some more digging.
On another note, since "it" now isn't an iterator anymore, we should rename it to "upgrade".