From 8023e8a5aae5eb03fee1f8408eabdbcd145706d1 Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 31 Jan 2026 23:09:44 +0100 Subject: [PATCH] chore: added standards-complying this-> --- modules/wave_survival/enemies/enemy_wretched.cpp | 7 +++---- modules/wave_survival/enemies/enemy_wretched.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/wave_survival/enemies/enemy_wretched.cpp b/modules/wave_survival/enemies/enemy_wretched.cpp index b285bdc3..ce90ad5f 100644 --- a/modules/wave_survival/enemies/enemy_wretched.cpp +++ b/modules/wave_survival/enemies/enemy_wretched.cpp @@ -1,5 +1,4 @@ #include "enemy_wretched.h" -#include "scene/animation/animation_player.h" #include "wave_survival/macros.h" #include "wave_survival/npc_unit.h" #include "wave_survival/patrol_path.h" @@ -20,9 +19,9 @@ void EnemyWretched::on_child_entered(Node *node) { } void EnemyWretched::ready() { - fsm->add_state(memnew(WretchedPatrolState)); - fsm->add_state(memnew(WretchedChaseState)); - fsm->add_state(memnew(WretchedAttackState)); + this->fsm->add_state(memnew(WretchedPatrolState)); + this->fsm->add_state(memnew(WretchedChaseState)); + this->fsm->add_state(memnew(WretchedAttackState)); } void EnemyWretched::_notification(int what) { diff --git a/modules/wave_survival/enemies/enemy_wretched.h b/modules/wave_survival/enemies/enemy_wretched.h index b96cbfbb..a9b82182 100644 --- a/modules/wave_survival/enemies/enemy_wretched.h +++ b/modules/wave_survival/enemies/enemy_wretched.h @@ -1,11 +1,11 @@ #ifndef ENEMY_WRETCHED_H #define ENEMY_WRETCHED_H +#include "scene/animation/animation_player.h" #include "wave_survival/enemy_body.h" #include "wave_survival/state.h" class PatrolPath; class NpcUnit; -class AnimationPlayer; class StateMachine; class EnemyWretched : public EnemyBody {