* 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
This commit is contained in:
XTZGZoReX committed 2010-08-07 15:26:24 +02:00
1 parent f296addc47
commit 14aeb09945
3 files changed
+77 -50

No files matched your search

+2 -1
View File
@@ -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;