diff --git a/src/io/rich_presence.cpp b/src/io/rich_presence.cpp index 8c89dcab1..0466558e0 100644 --- a/src/io/rich_presence.cpp +++ b/src/io/rich_presence.cpp @@ -475,7 +475,7 @@ void RichPresence::update(bool force) HardwareStats::Json activity; std::string trackName = _("Getting ready to race"); - Track* track; + Track* track = nullptr; if (world) { track = track_manager->getTrack(trackId);