mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/GridNotifiers: Fixed a warning from Coverity
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user