From f296addc472d5914cb1f9311e61b7b458a5aeaf6 Mon Sep 17 00:00:00 2001 From: click Date: Sat, 7 Aug 2010 15:04:28 +0200 Subject: Correction on previous commit: use uint32 and not simple ints --HG-- branch : trunk --- src/server/game/Scripting/ScriptMgr.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/server/game/Scripting') diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h index fd54174fe3f..d0ecaccf581 100644 --- a/src/server/game/Scripting/ScriptMgr.h +++ b/src/server/game/Scripting/ScriptMgr.h @@ -910,22 +910,23 @@ class ScriptMgr public: /* ScriptRegistry */ + // This is the global static registry of scripts. template class ScriptRegistry { // Counter used for code-only scripts. - static int _scriptIdCounter; + static uint32 _scriptIdCounter; public: - typedef std::map ScriptMap; + typedef std::map ScriptMap; // The actual list of scripts. This will be accessed concurrently, so it must not be modified // after server startup. static ScriptMap ScriptPointerList; // Gets a script by its ID (assigned by ObjectMgr). - static TScript* GetScriptById(int id) + static TScript* GetScriptById(uint32 id) { ScriptMap it = ScriptPointerList.find(id); if (it != ScriptPointerList.end()) -- cgit v1.2.3