aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Valle Herrera <subv2112@gmail.com>2014-07-21 12:55:36 -0500
committerSebastian Valle Herrera <subv2112@gmail.com>2014-07-21 12:55:36 -0500
commite223bbab6d668192e4adf703c5e5aeef16d3e388 (patch)
tree16ec85bff69866a5fb871e570bcfc91feae8fe93 /src
parent946ab3e8b71ad106c7e75fd78b96d70865b29d79 (diff)
Core/GridNotifiers: Fixed a warning from Coverity
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Grids/Notifiers/GridNotifiers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Grids/Notifiers/GridNotifiers.h b/src/server/game/Grids/Notifiers/GridNotifiers.h
index fe10d8183ec..e9ba95f8fb6 100644
--- a/src/server/game/Grids/Notifiers/GridNotifiers.h
+++ b/src/server/game/Grids/Notifiers/GridNotifiers.h
@@ -620,7 +620,7 @@ namespace Trinity
if (go->GetGOInfo()->spellFocus.focusId != i_focusId)
return false;
- float dist = (float)((go->GetGOInfo()->spellFocus.dist)/2);
+ float dist = go->GetGOInfo()->spellFocus.dist / 2.f;
return go->IsWithinDistInMap(i_unit, dist);
}