Skip to content

Commit a0e3099

Browse files
Fix #5208
1 parent 950b932 commit a0e3099

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/karts/kart_properties.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ KartProperties::~KartProperties()
145145
void KartProperties::copyForPlayer(const KartProperties *source,
146146
HandicapLevel h)
147147
{
148+
if (!source)
149+
{
150+
return;
151+
}
152+
148153
*this = *source;
149154

150155
// After the memcpy any pointers will be shared.

0 commit comments

Comments
 (0)