diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-08-28 16:08:33 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-09-08 19:58:52 +0200 |
commit | eb05494f128c98cb3bfb9c98ca2d8534fbed14d5 (patch) | |
tree | cadce89e43a18f997fd21a2fdd164e626079bfed | |
parent | 9ca7fc89a92e2988396cac6b452737e2ebeef3be (diff) |
Core/Misc: Fix gcc warnings
(cherry picked from commit 8cc418460fb8278002b0b8416b49728d0ff0ec76)
-rw-r--r-- | src/server/game/Reputation/ReputationMgr.cpp | 6 | ||||
-rw-r--r-- | src/server/game/Reputation/ReputationMgr.h | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/server/game/Reputation/ReputationMgr.cpp b/src/server/game/Reputation/ReputationMgr.cpp index 2adf518faaf..10f27239ab2 100644 --- a/src/server/game/Reputation/ReputationMgr.cpp +++ b/src/server/game/Reputation/ReputationMgr.cpp @@ -27,6 +27,12 @@ #include "WorldPacket.h" #include "WorldSession.h" +uint32 const ReputationRankStrIndex[MAX_REPUTATION_RANK] = +{ + LANG_REP_HATED, LANG_REP_HOSTILE, LANG_REP_UNFRIENDLY, LANG_REP_NEUTRAL, + LANG_REP_FRIENDLY, LANG_REP_HONORED, LANG_REP_REVERED, LANG_REP_EXALTED +}; + std::set<int32> const ReputationMgr::ReputationRankThresholds = { -42000, diff --git a/src/server/game/Reputation/ReputationMgr.h b/src/server/game/Reputation/ReputationMgr.h index a7478d396b5..54b9f8cf48b 100644 --- a/src/server/game/Reputation/ReputationMgr.h +++ b/src/server/game/Reputation/ReputationMgr.h @@ -27,11 +27,7 @@ #include <set> #include <map> -static uint32 ReputationRankStrIndex[MAX_REPUTATION_RANK] = -{ - LANG_REP_HATED, LANG_REP_HOSTILE, LANG_REP_UNFRIENDLY, LANG_REP_NEUTRAL, - LANG_REP_FRIENDLY, LANG_REP_HONORED, LANG_REP_REVERED, LANG_REP_EXALTED -}; +TC_GAME_API extern uint32 const ReputationRankStrIndex[MAX_REPUTATION_RANK]; enum class ReputationFlags : uint8 { |