fixed off-by-1 error when downloading campaigns (CVS internal)
This commit is contained in:
parent
1a83d1357d
commit
6e094253a5
1 changed files with 1 additions and 1 deletions
|
@ -948,7 +948,7 @@ void game_controller::download_campaigns()
|
|||
sorter.set_alpha_sort(1).set_alpha_sort(2).set_alpha_sort(3).set_numeric_sort(4).set_position_sort(5,sizes);
|
||||
|
||||
const int index = gui::show_dialog(disp(),NULL,_("Get Campaign"),_("Choose the campaign to download."),gui::OK_CANCEL,&options,
|
||||
NULL,"",NULL,0,NULL,NULL,-1,-1,NULL,NULL,"",&sorter) - 1;
|
||||
NULL,"",NULL,0,NULL,NULL,-1,-1,NULL,NULL,"",&sorter);
|
||||
if(index < 0) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue