Fix uninitialized track pointer

This commit is contained in:
Benau 2021-09-19 08:13:25 +08:00
parent b773c009cb
commit bc7e6de55b

View File

@ -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);