Fixed Crashes Caused By Destroying InValid Characters For Some Gadget Tutorials

This commit is contained in:
Rafal Swierczek 2023-11-03 17:32:59 +00:00
parent 384db6c241
commit 368a68a7e2
5 changed files with 8 additions and 8 deletions

Binary file not shown.

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a9258d613d6e6c5ee7942fb18d59fcaa0c732d91827a10b3b068d1255dd4f271
oid sha256:48387baadfbb75fbde16ef54415b0e3c8d56fa91b73c4e6acc410ee9d83c1456
size 53268

View File

@ -88,7 +88,7 @@ void AGadgetTutorialStation::SelectGadget()
{
// Eventually expand to give player feedback of being denied if changing gadgets fails
if (!EndlessVendettaCharacter->UpdateGadgetType(GadgetsArray[GadgetIndex])) return;
if (IsValid(CurrentGadgetTutorial)) CurrentGadgetTutorial->DestroyTutorial();
FActorSpawnParameters SpawnParams;