mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Replace all auto with auto*
For components
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user