sharq/SolidCore — Issue #7: [COMPILE] Linux Compile + FIX
Author: GuguRD
Created: 2012-03-06 23:19:32+00:00
State: open

There is a error while compiling under Linux (GCC an so):

Patch to fix:

diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp
index b21058e..3495dce 100644
--- a/src/server/game/Chat/Chat.cpp
+++ b/src/server/game/Chat/Chat.cpp
@@ -461,21 +461,21 @@ ChatCommand * ChatHandler::getCommandTable()

static ChatCommand ahbotItemsAmountCommandTable[] =
{
- { "grey", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand>, "", NULL },
- { "white", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand>, "", NULL },
- { "green", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand>, "", NULL },
- { "blue", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand>, "", NULL },
- { "purple", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand>,"", NULL },
- { "orange", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand>,"", NULL },
- { "yellow", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand>,"", NULL },
+ { "grey", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand >, "", NULL },
+ { "white", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand >, "", NULL },
+ { "green", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand >, "", NULL },
+ { "blue", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand >, "", NULL },
+ { "purple", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand >,"", NULL },
+ { "orange", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand >,"", NULL },
+ { "yellow", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsAmountQualityCommand >,"", NULL },
{ NULL, 0, true, NULL, "", NULL }
};

static ChatCommand ahbotItemsRatioCommandTable[] =
{
- { "alliance", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsRatioHouseCommand>, "", NULL },
- { "horde", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsRatioHouseCommand>, "", NULL },
- { "neutral", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsRatioHouseCommand>, "", NULL },
+ { "alliance", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsRatioHouseCommand >, "", NULL },
+ { "horde", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsRatioHouseCommand >, "", NULL },
+ { "neutral", SEC_ADMINISTRATOR, true, OldHandler<&ChatHandler::HandleAHBotItemsRatioHouseCommand >, "", NULL },
{ NULL, 0, true, NULL, "", NULL }
};

@@ -2322,4 +2322,4 @@ LocaleConstant CliHandler::GetSessionDbcLocale() const
int CliHandler::GetSessionDbLocaleIndex() const
{
return sObjectMgr->GetDBCLocaleIndex();
-}
\ No newline at end of file
+}