Let the gender choice use rand() instead of get_random()...
...like the other calls in the function.
This commit is contained in:
parent
c708081d39
commit
a8aefa42f5
1 changed files with 1 additions and 2 deletions
|
@ -25,7 +25,6 @@
|
|||
#include "gettext.hpp"
|
||||
#include "log.hpp"
|
||||
#include "multiplayer_connect.hpp"
|
||||
#include "random.hpp"
|
||||
#include "statistics.hpp"
|
||||
#include "show_dialog.hpp"
|
||||
#include "serialization/string_utils.hpp"
|
||||
|
@ -848,7 +847,7 @@ void connect::side::resolve_random()
|
|||
if (ut != parent_->game_data_.unit_types.end()) {
|
||||
const std::vector<unit_race::GENDER> glist = ut->second.genders();
|
||||
if (!glist.empty()) {
|
||||
const int gchoice = get_random() % glist.size();
|
||||
const int gchoice = rand() % glist.size();
|
||||
// Pick up a gender, using the random 'gchoice' index
|
||||
unit_race::GENDER sgender = glist[gchoice];
|
||||
switch (sgender)
|
||||
|
|
Loading…
Add table
Reference in a new issue