Fix a typo in an out-of-bounds check in lobby

This commit is contained in:
Tomasz Śniatowski 2010-03-14 14:00:32 +01:00
parent 5f38723d1e
commit 2e5b220f6d

View file

@ -627,7 +627,7 @@ void tlobby_main::update_gamelist_diff()
network::send_data(config("refresh_lobby"), 0, true);
return;
}
if (list_i + list_rows_deleted > gamelist_id_at_row_.size()) {
if (list_i + list_rows_deleted >= gamelist_id_at_row_.size()) {
ERR_LB << "gamelist_id_at_row_ overflow! "
<< list_i << " + " << list_rows_deleted
<< " > " << gamelist_id_at_row_.size()