diff options
-rw-r--r-- | src/common/Collision/Models/WorldModel.cpp | 4 | ||||
-rw-r--r-- | src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp | 6 | ||||
-rw-r--r-- | src/server/game/Time/UpdateTime.cpp | 1 |
3 files changed, 4 insertions, 7 deletions
diff --git a/src/common/Collision/Models/WorldModel.cpp b/src/common/Collision/Models/WorldModel.cpp index e6882596434..19b40b6de18 100644 --- a/src/common/Collision/Models/WorldModel.cpp +++ b/src/common/Collision/Models/WorldModel.cpp @@ -128,8 +128,8 @@ namespace VMAP iTilesY = other.iTilesY; iCorner = other.iCorner; iType = other.iType; - delete iHeight; - delete iFlags; + delete[] iHeight; + delete[] iFlags; if (other.iHeight) { iHeight = new float[(iTilesX+1)*(iTilesY+1)]; diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp index b108770f159..7b0dfaaf452 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundEY.cpp @@ -721,8 +721,7 @@ void BattlegroundEY::EventTeamLostPoint(Player* player, uint32 Point) UpdatePointsCount(Team); //remove bonus honor aura trigger creature when node is lost - if (Point < EY_POINTS_MAX) - DelCreature(Point + 6);//NULL checks are in DelCreature! 0-5 spirit guides + DelCreature(Point + 6);//NULL checks are in DelCreature! 0-5 spirit guides } void BattlegroundEY::EventTeamCapturedPoint(Player* player, uint32 Point) @@ -775,9 +774,6 @@ void BattlegroundEY::EventTeamCapturedPoint(Player* player, uint32 Point) UpdatePointsIcons(Team, Point); UpdatePointsCount(Team); - if (Point >= EY_POINTS_MAX) - return; - Creature* trigger = GetBGCreature(Point + 6, false);//0-5 spirit guides if (!trigger) trigger = AddCreature(WORLD_TRIGGER, Point+6, BG_EY_TriggerPositions[Point], GetTeamIndexByTeamId(Team)); diff --git a/src/server/game/Time/UpdateTime.cpp b/src/server/game/Time/UpdateTime.cpp index 1cc9fd1c507..b4c17f675cf 100644 --- a/src/server/game/Time/UpdateTime.cpp +++ b/src/server/game/Time/UpdateTime.cpp @@ -31,6 +31,7 @@ UpdateTime::UpdateTime() _maxUpdateTime = 0; _maxUpdateTimeOfLastTable = 0; _maxUpdateTimeOfCurrentTable = 0; + _recordedTime = 0; _updateTimeDataTable = { }; } |