Bugfix Game Crashes when Tracking a new Bounty after Completing a CP with a Hidden Waypoint

This commit is contained in:
Rafal Swierczek 2024-02-27 15:30:10 +00:00
parent 85125dd30e
commit 3791db6700
3 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ public:
// Destroys Waypoint Associated with this Checkpoint if one Exists // Destroys Waypoint Associated with this Checkpoint if one Exists
void DestroyWaypoint() void DestroyWaypoint()
{ {
if (WaypointActor) WaypointActor->Destroy(); if (IsValid(WaypointActor)) WaypointActor->Destroy();
} }
// Used by Bounty Class to broadcast checkpoint tip for current checkpoint // Used by Bounty Class to broadcast checkpoint tip for current checkpoint