[7844] Fixed mangos string storage index type. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -6851,11 +6851,7 @@ bool ObjectMgr::LoadTrinityStrings(DatabaseType& db, char const* table, int32 mi
|
|||||||
for(TrinityStringLocaleMap::iterator itr = mTrinityStringLocaleMap.begin(); itr != mTrinityStringLocaleMap.end();)
|
for(TrinityStringLocaleMap::iterator itr = mTrinityStringLocaleMap.begin(); itr != mTrinityStringLocaleMap.end();)
|
||||||
{
|
{
|
||||||
if (itr->first >= start_value && itr->first < end_value)
|
if (itr->first >= start_value && itr->first < end_value)
|
||||||
{
|
mTrinityStringLocaleMap.erase(itr++);
|
||||||
TrinityStringLocaleMap::iterator itr2 = itr;
|
|
||||||
++itr;
|
|
||||||
mTrinityStringLocaleMap.erase(itr2);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
++itr;
|
++itr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ typedef UNORDERED_MAP<uint32,ItemLocale> ItemLocaleMap;
|
|||||||
typedef UNORDERED_MAP<uint32,QuestLocale> QuestLocaleMap;
|
typedef UNORDERED_MAP<uint32,QuestLocale> QuestLocaleMap;
|
||||||
typedef UNORDERED_MAP<uint32,NpcTextLocale> NpcTextLocaleMap;
|
typedef UNORDERED_MAP<uint32,NpcTextLocale> NpcTextLocaleMap;
|
||||||
typedef UNORDERED_MAP<uint32,PageTextLocale> PageTextLocaleMap;
|
typedef UNORDERED_MAP<uint32,PageTextLocale> PageTextLocaleMap;
|
||||||
typedef UNORDERED_MAP<uint32,TrinityStringLocale> TrinityStringLocaleMap;
|
typedef UNORDERED_MAP<int32,TrinityStringLocale> TrinityStringLocaleMap;
|
||||||
typedef UNORDERED_MAP<uint32,NpcOptionLocale> NpcOptionLocaleMap;
|
typedef UNORDERED_MAP<uint32,NpcOptionLocale> NpcOptionLocaleMap;
|
||||||
typedef UNORDERED_MAP<uint32,PointOfInterestLocale> PointOfInterestLocaleMap;
|
typedef UNORDERED_MAP<uint32,PointOfInterestLocale> PointOfInterestLocaleMap;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user