mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-20 11:40:21 +00:00
Replace all auto with auto*
For components
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
void WaveBossHorsemen::OnStartup(Entity* self) {
|
||||
BaseWavesGenericEnemy::OnStartup(self);
|
||||
|
||||
auto combatAIComponent = self->GetComponent<BaseCombatAIComponent>();
|
||||
auto* combatAIComponent = self->GetComponent<BaseCombatAIComponent>();
|
||||
if (combatAIComponent != nullptr) {
|
||||
combatAIComponent->SetDisabled(true);
|
||||
combatAIComponent->SetStunImmune(true);
|
||||
@@ -18,7 +18,7 @@ void
|
||||
WaveBossHorsemen::OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1, int32_t param2,
|
||||
int32_t param3) {
|
||||
if (args == "startAI") {
|
||||
auto combatAIComponent = self->GetComponent<BaseCombatAIComponent>();
|
||||
auto* combatAIComponent = self->GetComponent<BaseCombatAIComponent>();
|
||||
if (combatAIComponent != nullptr) {
|
||||
combatAIComponent->SetDisabled(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user