Fix a problem using a singular iterator.
tschmitz please look at the code I fear there are more simular issues lurking.
This commit is contained in:
parent
b8ee30a86b
commit
7c92001031
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ void side_actions::set_team_index(size_t team_index)
|
|||
|
||||
void side_actions::get_numbers(const map_location& hex, numbers_t& result)
|
||||
{
|
||||
if(empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<int>& numbers_to_draw = result.numbers_to_draw;
|
||||
std::vector<size_t>& team_numbers = result.team_numbers;
|
||||
int& main_number = result.main_number;
|
||||
|
|
Loading…
Add table
Reference in a new issue