diff --git a/src/game/BattleGround/BattleGroundMgr.cpp b/src/game/BattleGround/BattleGroundMgr.cpp index c5bb671d9..8e315b91e 100644 --- a/src/game/BattleGround/BattleGroundMgr.cpp +++ b/src/game/BattleGround/BattleGroundMgr.cpp @@ -1257,7 +1257,7 @@ void BattleGroundMgr::BuildPvpLogDataPacket(WorldPacket* data, BattleGround* bg) if (type) // arena { // it seems this must be according to BG_WINNER_A/H and _NOT_ BG_TEAM_A/H - for (uint8 i = 1; i >= 0; --i) + for (int8 i = 1; i >= 0; --i) { uint32 pointsLost = bg->m_ArenaTeamRatingChanges[i] < 0 ? abs(bg->m_ArenaTeamRatingChanges[i]) : 0; uint32 pointsGained = bg->m_ArenaTeamRatingChanges[i] > 0 ? bg->m_ArenaTeamRatingChanges[i] : 0; @@ -1267,7 +1267,8 @@ void BattleGroundMgr::BuildPvpLogDataPacket(WorldPacket* data, BattleGround* bg) *data << uint32(0); // Matchmaking Value DEBUG_LOG("rating change: %d", bg->m_ArenaTeamRatingChanges[i]); } - for (uint8 i = 1; i >= 0; --i) + + for (int8 i = 1; i >= 0; --i) { uint32 at_id = bg->m_ArenaTeamIds[i]; ArenaTeam* at = sObjectMgr.GetArenaTeamById(at_id); diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index a844d6ee0..3c96184a2 100755 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -4780,7 +4780,7 @@ void ObjectMgr::LoadInstanceTemplate() if (!parentEntry) { sLog.outErrorDb("ObjectMgr::LoadInstanceTemplate: bad parent map id %u for instance template %d template!", - parentEntry->MapID, temp->map); + temp->parent, temp->map); const_cast(temp)->parent = 0; continue; } diff --git a/src/game/PathFinder.cpp b/src/game/PathFinder.cpp index 12d128093..91e237cd7 100644 --- a/src/game/PathFinder.cpp +++ b/src/game/PathFinder.cpp @@ -581,7 +581,7 @@ uint32 PathFinder::fixupCorridor(dtPolyRef* path, uint32 npath, uint32 maxPath, // Adjust beginning of the buffer to include the visited. uint32 req = nvisited - furthestVisited; uint32 orig = uint32(furthestPath + 1) < npath ? furthestPath + 1 : npath; - uint32 size = npath - orig > 0 ? npath - orig : 0; + uint32 size = npath > orig ? npath - orig : 0; if (req + size > maxPath) size = maxPath - req; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 125ef0772..88fe3e03f 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 "12168" + #define REVISION_NR "12169" #endif // __REVISION_NR_H__