From 14aeb09945a47336119a68b4f79caebc380147d3 Mon Sep 17 00:00:00 2001 From: XTZGZoReX Date: Sat, 7 Aug 2010 15:26:24 +0200 Subject: * 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 --- src/server/game/Scripting/ScriptMgr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server/game/Scripting/ScriptMgr.h') 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 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; -- cgit v1.2.3