aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Movement/PathGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Movement/PathGenerator.cpp b/src/server/game/Movement/PathGenerator.cpp
index 0cec5a1a541..3f8e7d44ff2 100644
--- a/src/server/game/Movement/PathGenerator.cpp
+++ b/src/server/game/Movement/PathGenerator.cpp
@@ -945,5 +945,5 @@ void PathGenerator::ReducePathLenghtByDist(float dist)
bool PathGenerator::IsInvalidDestinationZ(Unit const* target) const
{
- (target->GetPositionZ() - GetActualEndPosition().z) > 5.0f;
+ return (target->GetPositionZ() - GetActualEndPosition().z) > 5.0f;
}