diff --git a/src/game/AchievementMgr.cpp b/src/game/AchievementMgr.cpp index 8c51fc020..e4c0b590f 100644 --- a/src/game/AchievementMgr.cpp +++ b/src/game/AchievementMgr.cpp @@ -302,7 +302,7 @@ bool AchievementCriteriaRequirement::Meets(Player const* source, Unit const* tar return false; return ((Player*)target)->GetTeam() == team.team; case ACHIEVEMENT_CRITERIA_REQUIRE_S_DRUNK: - return Player::GetDrunkenstateByValue(source->GetDrunkValue()) >= drunk.state; + return (uint32)Player::GetDrunkenstateByValue(source->GetDrunkValue()) >= drunk.state; case ACHIEVEMENT_CRITERIA_REQUIRE_HOLIDAY: return IsHolidayActive(HolidayIds(holiday.id)); case ACHIEVEMENT_CRITERIA_REQUIRE_BG_LOSS_TEAM_SCORE: diff --git a/src/game/Channel.cpp b/src/game/Channel.cpp index 026c2eae2..840bb1f0d 100644 --- a/src/game/Channel.cpp +++ b/src/game/Channel.cpp @@ -455,7 +455,8 @@ void Channel::List(Player* player) // PLAYER can't see MODERATOR, GAME MASTER, ADMINISTRATOR characters // MODERATOR, GAME MASTER, ADMINISTRATOR can see all - if (plr && (player->GetSession()->GetSecurity() > SEC_PLAYER || plr->GetSession()->GetSecurity() <= gmLevelInWhoList) && + if (plr && (player->GetSession()->GetSecurity() > SEC_PLAYER || + (uint32)plr->GetSession()->GetSecurity() <= gmLevelInWhoList) && plr->IsVisibleGloballyFor(player)) { data << uint64(i->first); diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index 4c2654697..5f61df391 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -700,7 +700,7 @@ const char *ChatHandler::GetMangosString(int32 entry) const bool ChatHandler::isAvailable(ChatCommand const& cmd) const { // check security level only for simple command (without child commands) - return m_session->GetSecurity() >= cmd.SecurityLevel; + return (uint32)m_session->GetSecurity() >= cmd.SecurityLevel; } bool ChatHandler::HasLowerSecurity(Player* target, uint64 guid, bool strong) @@ -742,7 +742,7 @@ bool ChatHandler::HasLowerSecurityAccount(WorldSession* target, uint32 target_ac else return true; // caller must report error for (target==NULL && target_account==0) - if (m_session->GetSecurity() < target_sec || (strong && m_session->GetSecurity() <= target_sec)) + if ((uint32)m_session->GetSecurity() < target_sec || (strong && (uint32)m_session->GetSecurity() <= target_sec)) { SendSysMessage(LANG_YOURS_SECURITY_IS_LOW); SetSentErrorMessage(true); @@ -1521,7 +1521,7 @@ valid examples: for(uint8 i=LOCALE_koKR; i= il->Name.size()) + if (dbIndex == -1 || il == NULL || (uint)dbIndex >= il->Name.size()) // using strange database/client combinations can lead to this case expectedName = linkedItem->Name1; else diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 416ef1912..e8278c25d 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -838,9 +838,9 @@ void Creature::prepareGossipMenu( Player *pPlayer,uint32 gossipid ) NpcOptionLocale const *no = sObjectMgr.GetNpcOptionLocale(gso->Id); if (no) { - if (no->OptionText.size() > loc_idx && !no->OptionText[loc_idx].empty()) + if (no->OptionText.size() > (uint)loc_idx && !no->OptionText[loc_idx].empty()) OptionText=no->OptionText[loc_idx]; - if (no->BoxText.size() > loc_idx && !no->BoxText[loc_idx].empty()) + if (no->BoxText.size() > (uint)loc_idx && !no->BoxText[loc_idx].empty()) BoxText=no->BoxText[loc_idx]; } } @@ -2301,7 +2301,7 @@ const char* Creature::GetNameForLocaleIdx(int32 loc_idx) const CreatureLocale const *cl = sObjectMgr.GetCreatureLocale(GetEntry()); if (cl) { - if (cl->Name.size() > loc_idx && !cl->Name[loc_idx].empty()) + if (cl->Name.size() > (uint)loc_idx && !cl->Name[loc_idx].empty()) return cl->Name[loc_idx].c_str(); } } diff --git a/src/game/CreatureAISelector.cpp b/src/game/CreatureAISelector.cpp index e446f72b7..d68ee8ac2 100644 --- a/src/game/CreatureAISelector.cpp +++ b/src/game/CreatureAISelector.cpp @@ -46,8 +46,8 @@ namespace FactorySelector // select by NPC flags _first_ - otherwise EventAI might be choosen for pets/totems // excplicit check for isControlled() and owner type to allow guardian, mini-pets and pets controlled by NPCs to be scripted by EventAI Unit *owner=NULL; - if (creature->isPet() && ((Pet*)creature)->isControlled() && - ((owner=creature->GetOwner()) && owner->GetTypeId()==TYPEID_PLAYER) || creature->isCharmed()) + if ((creature->isPet() && ((Pet*)creature)->isControlled() && + ((owner=creature->GetOwner()) && owner->GetTypeId()==TYPEID_PLAYER)) || creature->isCharmed()) ai_factory = ai_registry.GetRegistryItem("PetAI"); else if (creature->isTotem()) ai_factory = ai_registry.GetRegistryItem("TotemAI"); diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp index 078e4335a..382328dfa 100644 --- a/src/game/CreatureEventAI.cpp +++ b/src/game/CreatureEventAI.cpp @@ -292,7 +292,7 @@ bool CreatureEventAI::ProcessEvent(CreatureEventAIHolder& pHolder, Unit* pAction //Note: checked only aura for effect 0, if need check aura for effect 1/2 then // possible way: pack in event.buffed.amount 2 uint16 (ammount+effectIdx) Aura* aura = m_creature->GetAura(event.buffed.spellId,0); - if(!aura || aura->GetStackAmount() < event.buffed.amount) + if (!aura || aura->GetStackAmount() < event.buffed.amount) return false; //Repeat Timers diff --git a/src/game/GameEventMgr.cpp b/src/game/GameEventMgr.cpp index a29c48644..b292f3489 100644 --- a/src/game/GameEventMgr.cpp +++ b/src/game/GameEventMgr.cpp @@ -199,7 +199,7 @@ void GameEventMgr::LoadFromDB() int32 internal_event_id = mGameEvent.size() + event_id - 1; - if(internal_event_id < 0 || internal_event_id >= mGameEventCreatureGuids.size()) + if(internal_event_id < 0 || (uint)internal_event_id >= mGameEventCreatureGuids.size()) { sLog.outErrorDb("`game_event_creature` game event id (%i) is out of range compared to max event id in `game_event`",event_id); continue; @@ -245,7 +245,7 @@ void GameEventMgr::LoadFromDB() int32 internal_event_id = mGameEvent.size() + event_id - 1; - if(internal_event_id < 0 || internal_event_id >= mGameEventGameobjectGuids.size()) + if(internal_event_id < 0 || (uint)internal_event_id >= mGameEventGameobjectGuids.size()) { sLog.outErrorDb("`game_event_gameobject` game event id (%i) is out of range compared to max event id in `game_event`",event_id); continue; @@ -394,7 +394,7 @@ void GameEventMgr::LoadFromDB() int32 internal_event_id = mGameEvent.size() + event_id - 1; - if(internal_event_id < 0 || internal_event_id >= mGameEventPoolIds.size()) + if (internal_event_id < 0 || (uint)internal_event_id >= mGameEventPoolIds.size()) { sLog.outErrorDb("`game_event_pool` game event id (%i) is out of range compared to max event id in `game_event`",event_id); continue; @@ -506,7 +506,7 @@ void GameEventMgr::GameEventSpawn(int16 event_id) { int32 internal_event_id = mGameEvent.size() + event_id - 1; - if(internal_event_id < 0 || internal_event_id >= mGameEventCreatureGuids.size()) + if (internal_event_id < 0 || (uint)internal_event_id >= mGameEventCreatureGuids.size()) { sLog.outError("GameEventMgr::GameEventSpawn attempt access to out of range mGameEventCreatureGuids element %i (size: " SIZEFMTD ")",internal_event_id,mGameEventCreatureGuids.size()); return; @@ -539,7 +539,7 @@ void GameEventMgr::GameEventSpawn(int16 event_id) } } - if(internal_event_id < 0 || internal_event_id >= mGameEventGameobjectGuids.size()) + if (internal_event_id < 0 || (uint)internal_event_id >= mGameEventGameobjectGuids.size()) { sLog.outError("GameEventMgr::GameEventSpawn attempt access to out of range mGameEventGameobjectGuids element %i (size: " SIZEFMTD ")",internal_event_id,mGameEventGameobjectGuids.size()); return; @@ -573,7 +573,7 @@ void GameEventMgr::GameEventSpawn(int16 event_id) } } - if(internal_event_id < 0 || internal_event_id >= mGameEventPoolIds.size()) + if (internal_event_id < 0 || (uint)internal_event_id >= mGameEventPoolIds.size()) { sLog.outError("GameEventMgr::GameEventSpawn attempt access to out of range mGameEventPoolIds element %i (size: " SIZEFMTD ")",internal_event_id,mGameEventPoolIds.size()); return; @@ -591,7 +591,7 @@ void GameEventMgr::GameEventUnspawn(int16 event_id) { int32 internal_event_id = mGameEvent.size() + event_id - 1; - if(internal_event_id < 0 || internal_event_id >= mGameEventCreatureGuids.size()) + if (internal_event_id < 0 || (uint)internal_event_id >= mGameEventCreatureGuids.size()) { sLog.outError("GameEventMgr::GameEventUnspawn attempt access to out of range mGameEventCreatureGuids element %i (size: " SIZEFMTD ")",internal_event_id,mGameEventCreatureGuids.size()); return; @@ -609,7 +609,7 @@ void GameEventMgr::GameEventUnspawn(int16 event_id) } } - if(internal_event_id < 0 || internal_event_id >= mGameEventGameobjectGuids.size()) + if (internal_event_id < 0 || (uint)internal_event_id >= mGameEventGameobjectGuids.size()) { sLog.outError("GameEventMgr::GameEventUnspawn attempt access to out of range mGameEventGameobjectGuids element %i (size: " SIZEFMTD ")",internal_event_id,mGameEventGameobjectGuids.size()); return; @@ -626,7 +626,7 @@ void GameEventMgr::GameEventUnspawn(int16 event_id) pGameobject->AddObjectToRemoveList(); } } - if(internal_event_id < 0 || internal_event_id >= mGameEventPoolIds.size()) + if (internal_event_id < 0 || (uint)internal_event_id >= mGameEventPoolIds.size()) { sLog.outError("GameEventMgr::GameEventUnspawn attempt access to out of range mGameEventPoolIds element %i (size: " SIZEFMTD ")",internal_event_id,mGameEventPoolIds.size()); return; @@ -755,7 +755,7 @@ MANGOS_DLL_SPEC bool IsHolidayActive( HolidayIds id ) GameEventMgr::ActiveEvents const& ae = sGameEventMgr.GetActiveEventList(); for(GameEventMgr::ActiveEvents::const_iterator itr = ae.begin(); itr != ae.end(); ++itr) - if(events[*itr].holiday_id==id) + if (events[*itr].holiday_id == id) return true; return false; diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 5dbd927b1..b7f7f1166 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -1296,7 +1296,7 @@ const char* GameObject::GetNameForLocaleIdx(int32 loc_idx) const GameObjectLocale const *cl = sObjectMgr.GetGameObjectLocale(GetEntry()); if (cl) { - if (cl->Name.size() > loc_idx && !cl->Name[loc_idx].empty()) + if (cl->Name.size() > (uint)loc_idx && !cl->Name[loc_idx].empty()) return cl->Name[loc_idx].c_str(); } } diff --git a/src/game/GossipDef.cpp b/src/game/GossipDef.cpp index 51b84708b..c40c6df28 100644 --- a/src/game/GossipDef.cpp +++ b/src/game/GossipDef.cpp @@ -160,7 +160,7 @@ void PlayerMenu::SendGossipMenu( uint32 TitleTextId, uint64 npcGUID ) QuestLocale const *ql = sObjectMgr.GetQuestLocale(questID); if (ql) { - if (ql->Title.size() > loc_idx && !ql->Title[loc_idx].empty()) + if (ql->Title.size() > (uint)loc_idx && !ql->Title[loc_idx].empty()) Title=ql->Title[loc_idx]; } } @@ -266,9 +266,9 @@ void PlayerMenu::SendTalking( uint32 textID ) { for (int i=0;i<8;++i) { - if (nl->Text_0[i].size() > loc_idx && !nl->Text_0[i][loc_idx].empty()) + if (nl->Text_0[i].size() > (uint)loc_idx && !nl->Text_0[i][loc_idx].empty()) Text_0[i]=nl->Text_0[i][loc_idx]; - if (nl->Text_1[i].size() > loc_idx && !nl->Text_1[i][loc_idx].empty()) + if (nl->Text_1[i].size() > (uint)loc_idx && !nl->Text_1[i][loc_idx].empty()) Text_1[i]=nl->Text_1[i][loc_idx]; } } @@ -393,7 +393,7 @@ void PlayerMenu::SendQuestGiverQuestList( QEmote eEmote, const std::string& Titl { if(QuestLocale const *ql = sObjectMgr.GetQuestLocale(questID)) { - if (ql->Title.size() > loc_idx && !ql->Title[loc_idx].empty()) + if (ql->Title.size() > (uint)loc_idx && !ql->Title[loc_idx].empty()) title=ql->Title[loc_idx]; } } @@ -432,13 +432,13 @@ void PlayerMenu::SendQuestGiverQuestDetails( Quest const *pQuest, uint64 npcGUID QuestLocale const *ql = sObjectMgr.GetQuestLocale(pQuest->GetQuestId()); if (ql) { - if (ql->Title.size() > loc_idx && !ql->Title[loc_idx].empty()) + if (ql->Title.size() > (uint)loc_idx && !ql->Title[loc_idx].empty()) Title=ql->Title[loc_idx]; - if (ql->Details.size() > loc_idx && !ql->Details[loc_idx].empty()) + if (ql->Details.size() > (uint)loc_idx && !ql->Details[loc_idx].empty()) Details=ql->Details[loc_idx]; - if (ql->Objectives.size() > loc_idx && !ql->Objectives[loc_idx].empty()) + if (ql->Objectives.size() > (uint)loc_idx && !ql->Objectives[loc_idx].empty()) Objectives=ql->Objectives[loc_idx]; - if (ql->EndText.size() > loc_idx && !ql->EndText[loc_idx].empty()) + if (ql->EndText.size() > (uint)loc_idx && !ql->EndText[loc_idx].empty()) EndText=ql->EndText[loc_idx]; } } @@ -528,17 +528,17 @@ void PlayerMenu::SendQuestQueryResponse( Quest const *pQuest ) QuestLocale const *ql = sObjectMgr.GetQuestLocale(pQuest->GetQuestId()); if (ql) { - if (ql->Title.size() > loc_idx && !ql->Title[loc_idx].empty()) + if (ql->Title.size() > (uint)loc_idx && !ql->Title[loc_idx].empty()) Title=ql->Title[loc_idx]; - if (ql->Details.size() > loc_idx && !ql->Details[loc_idx].empty()) + if (ql->Details.size() > (uint)loc_idx && !ql->Details[loc_idx].empty()) Details=ql->Details[loc_idx]; - if (ql->Objectives.size() > loc_idx && !ql->Objectives[loc_idx].empty()) + if (ql->Objectives.size() > (uint)loc_idx && !ql->Objectives[loc_idx].empty()) Objectives=ql->Objectives[loc_idx]; - if (ql->EndText.size() > loc_idx && !ql->EndText[loc_idx].empty()) + if (ql->EndText.size() > (uint)loc_idx && !ql->EndText[loc_idx].empty()) EndText=ql->EndText[loc_idx]; for (int i = 0;i < QUEST_OBJECTIVES_COUNT; ++i) - if (ql->ObjectiveText[i].size() > loc_idx && !ql->ObjectiveText[i][loc_idx].empty()) + if (ql->ObjectiveText[i].size() > (uint)loc_idx && !ql->ObjectiveText[i][loc_idx].empty()) ObjectiveText[i] = ql->ObjectiveText[i][loc_idx]; } } @@ -650,9 +650,9 @@ void PlayerMenu::SendQuestGiverOfferReward( Quest const* pQuest, uint64 npcGUID, QuestLocale const *ql = sObjectMgr.GetQuestLocale(pQuest->GetQuestId()); if (ql) { - if (ql->Title.size() > loc_idx && !ql->Title[loc_idx].empty()) + if (ql->Title.size() > (uint)loc_idx && !ql->Title[loc_idx].empty()) Title=ql->Title[loc_idx]; - if (ql->OfferRewardText.size() > loc_idx && !ql->OfferRewardText[loc_idx].empty()) + if (ql->OfferRewardText.size() > (uint)loc_idx && !ql->OfferRewardText[loc_idx].empty()) OfferRewardText=ql->OfferRewardText[loc_idx]; } } @@ -738,9 +738,9 @@ void PlayerMenu::SendQuestGiverRequestItems( Quest const *pQuest, uint64 npcGUID QuestLocale const *ql = sObjectMgr.GetQuestLocale(pQuest->GetQuestId()); if (ql) { - if (ql->Title.size() > loc_idx && !ql->Title[loc_idx].empty()) + if (ql->Title.size() > (uint)loc_idx && !ql->Title[loc_idx].empty()) Title=ql->Title[loc_idx]; - if (ql->RequestItemsText.size() > loc_idx && !ql->RequestItemsText[loc_idx].empty()) + if (ql->RequestItemsText.size() > (uint)loc_idx && !ql->RequestItemsText[loc_idx].empty()) RequestItemsText=ql->RequestItemsText[loc_idx]; } } diff --git a/src/game/Group.cpp b/src/game/Group.cpp index 389884326..18e77bf24 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -1544,7 +1544,7 @@ void Group::ResetInstances(uint8 method, bool isRaid, Player* SendMsgTo) { InstanceSave *p = itr->second.save; const MapEntry *entry = sMapStore.LookupEntry(itr->first); - if(!entry || entry->IsRaid() != isRaid || !p->CanReset() && method != INSTANCE_RESET_GROUP_DISBAND) + if (!entry || entry->IsRaid() != isRaid || (!p->CanReset() && method != INSTANCE_RESET_GROUP_DISBAND)) { ++itr; continue; diff --git a/src/game/GuildHandler.cpp b/src/game/GuildHandler.cpp index 7c7677bd3..b113b0caf 100644 --- a/src/game/GuildHandler.cpp +++ b/src/game/GuildHandler.cpp @@ -1072,7 +1072,7 @@ void WorldSession::HandleGuildBankSwapItems( WorldPacket & recv_data ) recv_data >> SplitedAmount; } - if (BankTabSlot >= GUILD_BANK_MAX_SLOTS && BankTabSlot != 0xFF || + if ((BankTabSlot >= GUILD_BANK_MAX_SLOTS && BankTabSlot != 0xFF) || BankTab >= pGuild->GetPurchasedTabs()) { recv_data.rpos(recv_data.wpos()); // prevent additional spam at rejected packet diff --git a/src/game/InstanceSaveMgr.cpp b/src/game/InstanceSaveMgr.cpp index ea713d95a..54f71b2ce 100644 --- a/src/game/InstanceSaveMgr.cpp +++ b/src/game/InstanceSaveMgr.cpp @@ -80,7 +80,7 @@ InstanceSave* InstanceSaveManager::AddInstanceSave(uint32 mapId, uint32 instance const MapEntry* entry = sMapStore.LookupEntry(mapId); if (!entry) { - sLog.outError("InstanceSaveManager::AddInstanceSave: wrong mapid = %d!", mapId, instanceId); + sLog.outError("InstanceSaveManager::AddInstanceSave: wrong mapid = %d, instanceid = %d!", mapId, instanceId); return NULL; } diff --git a/src/game/LFGHandler.cpp b/src/game/LFGHandler.cpp index dfd32d221..24b5f4ddc 100644 --- a/src/game/LFGHandler.cpp +++ b/src/game/LFGHandler.cpp @@ -45,7 +45,7 @@ static void AttemptJoin(Player* _player) continue; // skip not auto add, not group leader cases - if(!plr->GetSession()->LookingForGroup_auto_add || plr->GetGroup() && plr->GetGroup()->GetLeaderGUID()!=plr->GetGUID()) + if (!plr->GetSession()->LookingForGroup_auto_add || (plr->GetGroup() && plr->GetGroup()->GetLeaderGUID()!=plr->GetGUID())) continue; // skip non auto-join or empty slots, or non compatible slots diff --git a/src/game/LootHandler.cpp b/src/game/LootHandler.cpp index d96aef44e..a19e8d014 100644 --- a/src/game/LootHandler.cpp +++ b/src/game/LootHandler.cpp @@ -350,7 +350,7 @@ void WorldSession::DoLootRelease( uint64 lguid ) else if (go->GetGoType() == GAMEOBJECT_TYPE_FISHINGHOLE) { // The fishing hole used once more go->AddUse(); // if the max usage is reached, will be despawned in next tick - if (go->GetUseCount()>=irand(go->GetGOInfo()->fishinghole.minSuccessOpens,go->GetGOInfo()->fishinghole.maxSuccessOpens)) + if (go->GetUseCount() >= irand(go->GetGOInfo()->fishinghole.minSuccessOpens,go->GetGOInfo()->fishinghole.maxSuccessOpens)) { go->SetLootState(GO_JUST_DEACTIVATED); } diff --git a/src/game/Mail.cpp b/src/game/Mail.cpp index e49e13a04..290341432 100644 --- a/src/game/Mail.cpp +++ b/src/game/Mail.cpp @@ -671,7 +671,7 @@ void WorldSession::HandleMailCreateTextItem(WorldPacket & recv_data ) Player *pl = _player; Mail* m = pl->GetMail(mailId); - if(!m || !m->itemTextId && !m->mailTemplateId || m->state == MAIL_STATE_DELETED || m->deliver_time > time(NULL)) + if (!m || (!m->itemTextId && !m->mailTemplateId) || m->state == MAIL_STATE_DELETED || m->deliver_time > time(NULL)) { pl->SendMailResult(mailId, MAIL_MADE_PERMANENT, MAIL_ERR_INTERNAL_ERROR); return; diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 59ed9dd11..2347b00a8 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -200,9 +200,9 @@ void Map::DeleteStateMachine() Map::Map(uint32 id, time_t expiry, uint32 InstanceId, uint8 SpawnMode, Map* _parent) : i_mapEntry (sMapStore.LookupEntry(id)), i_spawnMode(SpawnMode), i_id(id), i_InstanceId(InstanceId), m_unloadTimer(0), + m_VisibleDistance(DEFAULT_VISIBILITY_DISTANCE), m_activeNonPlayersIter(m_activeNonPlayers.end()), i_gridExpiry(expiry), m_parentMap(_parent ? _parent : this), - m_VisibleDistance(DEFAULT_VISIBILITY_DISTANCE), m_hiDynObjectGuid(1), m_hiPetGuid(1), m_hiVehicleGuid(1) { for(unsigned int idx=0; idx < MAX_NUMBER_OF_GRIDS; ++idx) diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index fa882341a..c3e229536 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -153,7 +153,7 @@ void WorldSession::HandleWhoOpcode( WorldPacket & recv_data ) continue; // player can see MODERATOR, GAME MASTER, ADMINISTRATOR only if CONFIG_GM_IN_WHO_LIST - if ((itr->second->GetSession()->GetSecurity() > gmLevelInWhoList)) + if ((uint)itr->second->GetSession()->GetSecurity() > gmLevelInWhoList) continue; } diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 72399164b..c3aaa990a 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1115,8 +1115,8 @@ void Object::BuildUpdateData( UpdateDataMapType& update_players ) } WorldObject::WorldObject() - : m_mapId(0), m_InstanceId(0), m_phaseMask(PHASEMASK_NORMAL), - m_positionX(0.0f), m_positionY(0.0f), m_positionZ(0.0f), m_orientation(0.0f), m_currMap(NULL) + : m_currMap(NULL), m_mapId(0), m_InstanceId(0), m_phaseMask(PHASEMASK_NORMAL), + m_positionX(0.0f), m_positionY(0.0f), m_positionZ(0.0f), m_orientation(0.0f) { } diff --git a/src/mangosd/Master.cpp b/src/mangosd/Master.cpp index 8e4daa9b4..1117a1739 100644 --- a/src/mangosd/Master.cpp +++ b/src/mangosd/Master.cpp @@ -291,8 +291,6 @@ int Master::Run() uint32 realCurrTime, realPrevTime; realCurrTime = realPrevTime = getMSTime(); - uint32 socketSelecttime = sWorld.getConfig(CONFIG_SOCKET_SELECTTIME); - ///- Start up freeze catcher thread if(uint32 freeze_delay = sConfig.GetIntDefault("MaxCoreStuckTime", 0)) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 39be4664c..6ad8e4822 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 "8844" + #define REVISION_NR "8845" #endif // __REVISION_NR_H__