Core/Misc: Fix GCC 8 warning

This commit is contained in:
jackpoz
2019-05-11 19:46:23 +02:00
parent 552720a993
commit df7f166e5e

View File

@@ -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);
}