mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
[svn] * Switch from hashmap to unordered map. - cleanup source - mangos. Help - Aokromes
--HG-- branch : trunk rename : src/framework/Utilities/HashMap.h => src/framework/Utilities/UnorderedMap.h
This commit is contained in:
@@ -45,7 +45,7 @@ enum ChatType
|
||||
#define TEXT_SOURCE_RANGE -1000000 //the amount of entries each text source has available
|
||||
|
||||
// Text Maps
|
||||
HM_NAMESPACE::hash_map<int32, StringTextData> TextMap;
|
||||
UNORDERED_MAP<int32, StringTextData> TextMap;
|
||||
|
||||
|
||||
//*** End Global data ***
|
||||
@@ -55,10 +55,10 @@ HM_NAMESPACE::hash_map<int32, StringTextData> TextMap;
|
||||
std::list<EventAI_Event> EventAI_Event_List;
|
||||
|
||||
//Event AI summon structure. Used exclusivly by mob_event_ai.cpp.
|
||||
HM_NAMESPACE::hash_map<uint32, EventAI_Summon> EventAI_Summon_Map;
|
||||
UNORDERED_MAP<uint32, EventAI_Summon> EventAI_Summon_Map;
|
||||
|
||||
//Event AI error prevention structure. Used at runtime to prevent error log spam of same creature id.
|
||||
//HM_NAMESPACE::hash_map<uint32, EventAI_CreatureError> EventAI_CreatureErrorPreventionList;
|
||||
//UNORDERED_MAP<uint32, EventAI_CreatureError> EventAI_CreatureErrorPreventionList;
|
||||
|
||||
uint32 EAI_ErrorLevel;
|
||||
//*** End EventAI data ***
|
||||
@@ -1792,7 +1792,7 @@ void DoScriptText(int32 textEntry, WorldObject* pSource, Unit* target)
|
||||
return;
|
||||
}
|
||||
|
||||
HM_NAMESPACE::hash_map<int32, StringTextData>::iterator i = TextMap.find(textEntry);
|
||||
UNORDERED_MAP<int32, StringTextData>::iterator i = TextMap.find(textEntry);
|
||||
|
||||
if (i == TextMap.end())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user