This commit is contained in:
Alayan-stk-2 2018-08-21 02:51:04 +02:00 committed by auriamg
parent 07fd42ee3c
commit 8039a18aec

View File

@ -1054,6 +1054,10 @@ void RaceResultGUI::displayCTFResults()
#ifndef SERVER_ONLY
unsigned int num_karts = race_manager->getNumberOfKarts();
std::vector<int> old_rank(num_karts, 0);
// Update the kart GP ranks
// This is useful, e.g., when continuing a saved GP.
race_manager->computeGPRanks();
for (unsigned int kart_id = 0; kart_id < num_karts; kart_id++)
{
int rank = race_manager->getKartGPRank(kart_id);