diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 1d151f790..4ab10b561 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1396,9 +1396,9 @@ void WorldObject::UpdateAllowedPositionZ(float x, float y, float &z) const // non swim unit must be at ground (mostly speedup, because it don't must be in water and water level check less fast if (!((Creature const*)this)->CanFly()) { - bool CanSwim = ((Creature const*)this)->CanSwim(); + bool canSwim = ((Creature const*)this)->CanSwim(); float ground_z = z; - float max_z = CanSwim + float max_z = canSwim ? GetTerrain()->GetWaterOrGroundLevel(x, y, z, &ground_z, !((Unit const*)this)->HasAuraType(SPELL_AURA_WATER_WALK)) : ((ground_z = GetTerrain()->GetHeight(x, y, z, true))); if (max_z > INVALID_HEIGHT) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 9c3e2ff51..6339172e3 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11184" + #define REVISION_NR "11185" #endif // __REVISION_NR_H__