From 40afbfc474c1a341b327b109700726cb78fbcd71 Mon Sep 17 00:00:00 2001 From: AnchyDev Date: Sun, 22 Oct 2023 12:18:16 +1100 Subject: [PATCH] Fixed issues with gameobject despawning. --- src/scripts/ToSInstanceScript.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/ToSInstanceScript.cpp b/src/scripts/ToSInstanceScript.cpp index 2ff422b..480c829 100644 --- a/src/scripts/ToSInstanceScript.cpp +++ b/src/scripts/ToSInstanceScript.cpp @@ -208,19 +208,19 @@ void ToSInstanceScript::DespawnCurseCrystals() { if (curseCrystal1) { - curseCrystal1->DespawnOrUnsummon(1s); + curseCrystal1->Delete(); curseCrystal1 = nullptr; } if (curseCrystal2) { - curseCrystal2->DespawnOrUnsummon(1s); + curseCrystal2->Delete(); curseCrystal2 = nullptr; } if (curseCrystal3) { - curseCrystal3->DespawnOrUnsummon(1s); + curseCrystal3->Delete(); curseCrystal3 = nullptr; } } @@ -816,7 +816,7 @@ void ToSInstanceScript::CleanupGameObjects() if (rewardBeam && rewardBeam->IsInWorld()) { - rewardBeam->DespawnOrUnsummon(); + rewardBeam->Delete(); rewardBeam = nullptr; }