From d14a4f1f66c5bda617ae616fa342286d98bf1987 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 25 Jul 2024 16:50:16 +0200 Subject: [PATCH] Minor codestyle fixes --- Source/Engine/AI/BehaviorKnowledge.h | 4 ++-- Source/Engine/AI/BehaviorTreeNodes.cpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/Engine/AI/BehaviorKnowledge.h b/Source/Engine/AI/BehaviorKnowledge.h index aef894c73..e89b3de4b 100644 --- a/Source/Engine/AI/BehaviorKnowledge.h +++ b/Source/Engine/AI/BehaviorKnowledge.h @@ -83,13 +83,13 @@ public: /// Checks if knowledge has a given goal (exact type match without base class check). /// /// The goal type. - /// True if has a given goal, otherwise false. + /// True if knowledge has a given goal, otherwise false. API_FUNCTION() bool HasGoal(ScriptingTypeHandle type) const; /// /// Checks if knowledge has a given goal (exact type match without base class check). /// - /// True if has a given goal, otherwise false. + /// True if knowledge has a given goal, otherwise false. template FORCE_INLINE bool HasGoal() { diff --git a/Source/Engine/AI/BehaviorTreeNodes.cpp b/Source/Engine/AI/BehaviorTreeNodes.cpp index 02080da7d..e5b9d8d60 100644 --- a/Source/Engine/AI/BehaviorTreeNodes.cpp +++ b/Source/Engine/AI/BehaviorTreeNodes.cpp @@ -140,7 +140,7 @@ void BehaviorTreeNode::Deserialize(DeserializeStream& stream, ISerializeModifier { SerializableScriptingObject::Deserialize(stream, modifier); - Name.Clear(); // Missing Name is assumes as unnamed node + Name.Clear(); // Missing Name is assumed as unnamed node DESERIALIZE(Name); } @@ -197,7 +197,6 @@ BehaviorUpdateResult BehaviorTreeSequenceNode::Update(const BehaviorUpdateContex return BehaviorUpdateResult::Failed; auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context); - switch (result) { case BehaviorUpdateResult::Success: @@ -232,7 +231,6 @@ BehaviorUpdateResult BehaviorTreeSelectorNode::Update(const BehaviorUpdateContex return BehaviorUpdateResult::Failed; auto result = Children[state->CurrentChildIndex]->InvokeUpdate(context); - switch (result) { case BehaviorUpdateResult::Success: