Fix uninitialized track pointer
This commit is contained in:
parent
b773c009cb
commit
bc7e6de55b
@ -475,7 +475,7 @@ void RichPresence::update(bool force)
|
|||||||
HardwareStats::Json activity;
|
HardwareStats::Json activity;
|
||||||
|
|
||||||
std::string trackName = _("Getting ready to race");
|
std::string trackName = _("Getting ready to race");
|
||||||
Track* track;
|
Track* track = nullptr;
|
||||||
if (world)
|
if (world)
|
||||||
{
|
{
|
||||||
track = track_manager->getTrack(trackId);
|
track = track_manager->getTrack(trackId);
|
||||||
|
Loading…
Reference in New Issue
Block a user