* Fixes for Linux build.
--HG-- branch : trunk
This commit is contained in:
1 parent
f413d60908
commit
0993b1fcb5
3 files changed
+9
-8
No files matched your search
@@ -914,11 +914,11 @@ class ScriptMgr
|
||||
// Gets a script by its ID (assigned by ObjectMgr).
|
||||
static TScript* GetScriptById(uint32 id)
|
||||
{
|
||||
for (ScriptMap::iterator it = ScriptPointerList.begin(); it != ScriptPointerList.end(); ++it)
|
||||
if (it->first == id)
|
||||
return it->second;
|
||||
ScriptMap::iterator it = ScriptPointerList.find(id);
|
||||
if (it == ScriptPointerList.end())
|
||||
return NULL;
|
||||
|
||||
return NULL;
|
||||
return it->second;
|
||||
}
|
||||
|
||||
// Attempts to add a new script to the list.
|
||||
|
||||
Reference in new issue
Block a user