* Fixes for Linux build.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX committed 2010-08-06 23:21:58 +02:00
1 parent f413d60908
commit 0993b1fcb5
3 files changed
+9 -8

No files matched your search

+4 -4
View File
@@ -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.