widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #14308
Re: [Merge] lp:~widelands-dev/widelands/bug-1783878_editor_random_map_tribe into lp:widelands
Review: Needs Fixing
I like the proposed change. However, when starting the editor and clicking the "Players" button I get an exception:
widelands: ../src/logic/map.cc:411: const string& Widelands::Map::get_scenario_player_tribe(Widelands::PlayerNumber) const: Assertion `p <= get_nrplayers()' failed.
Problem is the change in diff line 81, where p can be greater than the number of active players.
Since the editor-user has the option to do so now anyway: Select the "random" tribe in line 42 of the diff?
--
https://code.launchpad.net/~widelands-dev/widelands/bug-1783878_editor_random_map_tribe/+merge/352943
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1783878_editor_random_map_tribe.
References