From eb05494f128c98cb3bfb9c98ca2d8534fbed14d5 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 28 Aug 2021 16:08:33 +0200 Subject: Core/Misc: Fix gcc warnings (cherry picked from commit 8cc418460fb8278002b0b8416b49728d0ff0ec76) --- src/server/game/Reputation/ReputationMgr.cpp | 6 ++++++ src/server/game/Reputation/ReputationMgr.h | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src') 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 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 #include -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 { -- cgit v1.2.3