We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 150b0c2 commit 9958531Copy full SHA for 9958531
1 file changed
code/network/multiui.cpp
@@ -1803,7 +1803,7 @@ void multi_join_cull_timeouts()
1803
1804
// traverse through the entire list if any items exist
1805
int i = 0;
1806
- for (auto game = Active_games.begin(); game != Active_games.end(); ++game) {
+ for (auto game = Active_games.begin(); game != Active_games.end(); ) {
1807
if (game->heard_from_timer.isValid() && (ui_timestamp_elapsed(game->heard_from_timer))) {
1808
1809
// handle any gui details related to deleting this item
@@ -1815,9 +1815,10 @@ void multi_join_cull_timeouts()
1815
}
1816
1817
// delete the item
1818
- Active_games.erase(game);
+ game = Active_games.erase(game);
1819
} else {
1820
++i;
1821
+ ++game;
1822
1823
1824
0 commit comments