diff options
author | XTZGZoReX <none@none> | 2010-08-07 15:26:24 +0200 |
---|---|---|
committer | XTZGZoReX <none@none> | 2010-08-07 15:26:24 +0200 |
commit | 14aeb09945a47336119a68b4f79caebc380147d3 (patch) | |
tree | 4e47890205e8964e8de3ec11cf755cc19c682979 /src/server/game/Scripting/ScriptMgr.h | |
parent | f296addc472d5914cb1f9311e61b7b458a5aeaf6 (diff) |
* This should help with the Linux build; thanks to Machiavelli/click.
* VehicleScript is now bound to the database (`creature_template`.`ScriptName`) and only works for creature vehicles.
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.h')
-rw-r--r-- | src/server/game/Scripting/ScriptMgr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h index d0ecaccf581..986fd40264d 100644 --- a/src/server/game/Scripting/ScriptMgr.h +++ b/src/server/game/Scripting/ScriptMgr.h @@ -920,6 +920,7 @@ class ScriptMgr public: typedef std::map<uint32, TScript*> ScriptMap; + typedef typename ScriptMap::iterator ScriptMapIterator; // The actual list of scripts. This will be accessed concurrently, so it must not be modified // after server startup. @@ -928,7 +929,7 @@ class ScriptMgr // Gets a script by its ID (assigned by ObjectMgr). static TScript* GetScriptById(uint32 id) { - ScriptMap it = ScriptPointerList.find(id); + ScriptMapIterator it = ScriptPointerList.find(id); if (it != ScriptPointerList.end()) return it->second; |