Skip to content

Commit

Permalink
Fix #5208
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Feb 26, 2025
1 parent 950b932 commit a0e3099
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/karts/kart_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ KartProperties::~KartProperties()
void KartProperties::copyForPlayer(const KartProperties *source,
HandicapLevel h)
{
if (!source)
{
return;
}

*this = *source;

// After the memcpy any pointers will be shared.
Expand Down

0 comments on commit a0e3099

Please sign in to comment.