Merge lp:~widelands-dev/widelands/bug1504366 into lp:widelands
Proposed by
Jens Beyer
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 7545 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug1504366 | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
28 lines (+5/-4) 1 file modified
src/editor/ui_menus/editor_player_menu.cc (+5/-4) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug1504366 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+273995@code.launchpad.net |
Description of the change
Fix the crash, and by the way, replace the 99 as loop boundary by the MAX_PLAYERS define used everywhere else.
For me it works... but as usual, I'm not a C++ programmer yet ^^ so please check well.
To post a comment you must log in.
On a second look, maybe I was a bit too eager on the MAX_PLAYERS thing, and I could take that part back, but on the other hand, it still looks like it would never happen to be something over MAX_PLAYERS... well, you decide :-)
I tested again and don't see any issues.
I found a new issue (when 8 players are selected, the "up" button is disabled, but when you press "down", the "up" button is not enabled again). In current trunk this is not testable, as it crashes after selecting "8". If you want, I can open a new bug for that.