mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
[7745] Fixed gcc warnings. Author: AlexDereka
--HG-- branch : trunk
This commit is contained in:
@@ -5048,8 +5048,10 @@ WorldSafeLocsEntry const *ObjectMgr::GetClosestGraveYard(float x, float y, float
|
||||
if(MapId != entry->map_id)
|
||||
{
|
||||
// if find graveyard at different map from where entrance placed (or no entrance data), use any first
|
||||
if (!mapEntry || mapEntry->entrance_map < 0 || mapEntry->entrance_map != entry->map_id ||
|
||||
mapEntry->entrance_x == 0 && mapEntry->entrance_y == 0)
|
||||
if (!mapEntry ||
|
||||
mapEntry->entrance_map < 0 ||
|
||||
mapEntry->entrance_map != entry->map_id ||
|
||||
(mapEntry->entrance_x == 0 && mapEntry->entrance_y == 0))
|
||||
{
|
||||
// not have any corrdinates for check distance anyway
|
||||
entryFar = entry;
|
||||
@@ -7170,6 +7172,8 @@ bool PlayerCondition::IsValid(ConditionType condition, uint32 value1, uint32 val
|
||||
case CONDITION_INSTANCE_DATA:
|
||||
//TODO: need some check
|
||||
break;
|
||||
case CONDITION_NONE:
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user