From 6bf1a33ddc94e4ccc7ea9fe4eb69911ed85188b2 Mon Sep 17 00:00:00 2001 From: konstin Date: Sat, 31 May 2014 16:50:01 +0200 Subject: [PATCH] fix compilation failure due to merging --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 118e2885a..ff95b19ff 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -361,7 +361,7 @@ void gamepadVisualisation() } // gamepadVisualisation // ============================================================================ -/** Sets the hat mesh name depending on the current christmas mode +/** Sets the hat mesh name depending on the current christmas mode * m_xmas_mode (0: use current date, 1: always on, 2: always off). */ void handleXmasMode() @@ -847,14 +847,14 @@ int handleCmdLine() if(CommandLine::has("--gp", &s)) { race_manager->setMajorMode(RaceManager::MAJOR_MODE_GRAND_PRIX); - const GrandPrixData *gp = grand_prix_manager->getGrandPrix(s); + GrandPrixData *gp = grand_prix_manager->getGrandPrix(s); if (!gp) { Log::warn("main", "There is no GP named '%s'.", s.c_str()); return 0; } - race_manager->setGrandPrix(*gp); + race_manager->setGrandPrix(gp); } // --gp if(CommandLine::has("--numkarts", &n) ||CommandLine::has("-k", &n))