Merge lp:~widelands-dev/widelands/bug-1782377-compiler-error into lp:widelands
Proposed by
Klaus Halfmann
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8758 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1782377-compiler-error | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
19 lines (+4/-3) 1 file modified
src/logic/player.cc (+4/-3) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1782377-compiler-error | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Pending | ||
Review via email: mp+349831@code.launchpad.net |
Commit message
Fix for Bug#1782377
Description of the change
Fix compiler error in src/logic/
As of to many auto variables the compiler (an I) got confused
how to use a iterator for a two dimensional array.
I simmplified the code to make the compiler and the codecheck happy.
I had not time to check this, yet.
Gun: in this case the codecheck did not point to a real improvement, do we really need that one?
To post a comment you must log in.
I did a quick test, saving is still OK.
That stats[ware_index] is actually an invariant and could be removed, too. Next time :-)