fix comparison (#3684)

This commit is contained in:
Mrxx99 2019-01-06 16:25:20 +01:00 committed by Alayan-stk-2
parent 9fb90d0c31
commit 6a361db994
2 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ LinearWorld::LinearWorld() : WorldWithRank()
m_fastest_lap_ticks = INT_MAX;
m_valid_reference_time = false;
m_live_time_difference = 0.0f;
m_fastest_lap_kart_name = "";
} // LinearWorld
// ----------------------------------------------------------------------------

View File

@ -1660,7 +1660,7 @@ void RaceResultGUI::displayCTFResults()
core::stringw best_lap_by = dynamic_cast<LinearWorld*>(World::getWorld())->getFastestLapKartName();
if (best_lap_by != NULL)
if (best_lap_by != "")
{
//I18N: is used to indicate who has the bast laptime (best laptime "by kart_name")
core::stringw best_lap_by_string = _("by %s", best_lap_by);