Merge branch 'master' of git://github.com/EQEmu/Server

This commit is contained in:
Arthur Ice 2013-03-03 15:22:52 -08:00
commit 68338dace1
3 changed files with 12 additions and 14 deletions

View File

@ -15372,7 +15372,7 @@ void Bot::ProcessBotCommands(Client *c, const Seperator *sep) {
if(!strcasecmp(sep->arg[1], "stance")) {
if(sep->argnum == 3){
Bot* tempBot;
Bot* tempBot = NULL;
std::string botName = std::string(sep->arg[2]);
if(!botName.empty())

View File

@ -13503,19 +13503,20 @@ void Client::Handle_OP_MercenaryDataRequest(const EQApplicationPacket *app)
}
NPC* tar = entity_list.GetNPCByID(merchant_id);
if(tar) {
if(tar) {
int mercTypeCount = 0;
int mercCount = 0;
if(DistNoRoot(*tar) > USE_NPC_RANGE2)
return;
if(tar->GetClass() != MERCERNARY_MASTER) {
return;
}
MercenaryMerchantList_Struct* mml = new MercenaryMerchantList_Struct;
if(DistNoRoot(*tar) > USE_NPC_RANGE2)
return;
if(tar->GetClass() != MERCERNARY_MASTER) {
return;
}
mercTypeCount = tar->GetNumMercTypes(GetClientVersion());
mercCount = tar->GetNumMercs(GetClientVersion());

View File

@ -5165,12 +5165,9 @@ bool Merc::Unsuspend(bool setMaxStats) {
return true;
}
bool Merc::Dismiss() {
Client* mercOwner;
bool Merc::Dismiss(){
if(GetMercOwner()) {
mercOwner = GetMercOwner();
}
Client* mercOwner = GetMercOwner();
if(!mercOwner)
return false;