From cb72302a8a12d1d851afa19659196b809d6e8666 Mon Sep 17 00:00:00 2001 From: AlexDereka Date: Wed, 29 Apr 2009 05:16:49 +0400 Subject: [PATCH] [7732] Fixed compile warnings. --- src/game/GossipDef.cpp | 6 +++--- src/game/LootMgr.cpp | 2 +- src/shared/revision_nr.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/GossipDef.cpp b/src/game/GossipDef.cpp index ec3107cbe..83c8befe1 100644 --- a/src/game/GossipDef.cpp +++ b/src/game/GossipDef.cpp @@ -130,7 +130,7 @@ void PlayerMenu::SendGossipMenu( uint32 TitleTextId, uint64 npcGUID ) data << uint32( TitleTextId ); data << uint32( mGossipMenu.MenuItemCount() ); // max count 0x0F - for (int iI = 0; iI < mGossipMenu.MenuItemCount(); ++iI ) + for (uint32 iI = 0; iI < mGossipMenu.MenuItemCount(); ++iI ) { GossipMenuItem const& gItem = mGossipMenu.GetItem(iI); data << uint32( iI ); @@ -143,7 +143,7 @@ void PlayerMenu::SendGossipMenu( uint32 TitleTextId, uint64 npcGUID ) data << uint32( mQuestMenu.MenuItemCount() ); // max count 0x20 - for ( int iI = 0; iI < mQuestMenu.MenuItemCount(); ++iI ) + for (uint32 iI = 0; iI < mQuestMenu.MenuItemCount(); ++iI ) { QuestMenuItem const& qItem = mQuestMenu.GetItem(iI); uint32 questID = qItem.m_qId; @@ -379,7 +379,7 @@ void PlayerMenu::SendQuestGiverQuestList( QEmote eEmote, const std::string& Titl data << uint32(eEmote._Emote ); // NPC emote data << uint8 ( mQuestMenu.MenuItemCount() ); - for ( int iI = 0; iI < mQuestMenu.MenuItemCount(); ++iI ) + for (uint32 iI = 0; iI < mQuestMenu.MenuItemCount(); ++iI ) { QuestMenuItem const& qmi = mQuestMenu.GetItem(iI); diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp index b872c14e0..a0789e851 100644 --- a/src/game/LootMgr.cpp +++ b/src/game/LootMgr.cpp @@ -148,7 +148,7 @@ void LootStore::LoadLootTable() tab = m_LootTemplates.find(entry); if ( tab == m_LootTemplates.end() ) { - std::pair< LootTemplateMap::const_iterator, bool > pr = m_LootTemplates.insert(LootTemplateMap::value_type(entry, new LootTemplate)); + std::pair< LootTemplateMap::iterator, bool > pr = m_LootTemplates.insert(LootTemplateMap::value_type(entry, new LootTemplate)); tab = pr.first; } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 3df7452fd..a3d72c6c2 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 "7731" + #define REVISION_NR "7732" #endif // __REVISION_NR_H__