From bc7e6de55ba036c518e26213ff0b6c6a0128e480 Mon Sep 17 00:00:00 2001 From: Benau Date: Sun, 19 Sep 2021 08:13:25 +0800 Subject: [PATCH] Fix uninitialized track pointer --- src/io/rich_presence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);