mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/Misc: Fix GCC 8 warning
This commit is contained in:
@@ -2640,7 +2640,7 @@ bool GameObject::IsAtInteractDistance(Player const* player, SpellInfo const* spe
|
||||
if (GetGoType() == GAMEOBJECT_TYPE_SPELL_FOCUS)
|
||||
return maxRange * maxRange >= GetExactDistSq(player);
|
||||
|
||||
if (GameObjectDisplayInfoEntry const* displayInfo = sGameObjectDisplayInfoStore.LookupEntry(GetGOInfo()->displayId))
|
||||
if (sGameObjectDisplayInfoStore.LookupEntry(GetGOInfo()->displayId))
|
||||
return IsAtInteractDistance(*player, maxRange);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user