Move to shared pointer

This commit is contained in:
David Markowitz
2023-06-07 00:23:50 -07:00
parent ea9d0d8592
commit 9e9e4dc087
219 changed files with 743 additions and 748 deletions

View File

@@ -6,7 +6,7 @@
#include "Loot.h"
void MinigameTreasureChestServer::OnUse(Entity* self, Entity* user) {
auto* sac = self->GetComponent<ScriptedActivityComponent>();
auto sac = self->GetComponent<ScriptedActivityComponent>();
if (sac == nullptr)
return;
@@ -57,7 +57,7 @@ void MinigameTreasureChestServer::OnStartup(Entity* self) {
// BONS treasure chest thinks it's on FV, causing it to start a lobby
if (dZoneManager::Instance()->GetZoneID().GetMapID() == 1204) {
auto* sac = self->GetComponent<ScriptedActivityComponent>();
auto sac = self->GetComponent<ScriptedActivityComponent>();
if (sac != nullptr) {
sac->SetInstanceMapID(1204);
}