Core: Warning fixes

This commit is contained in:
Shauren committed 2011-05-07 19:08:50 +02:00
1 parent b82ae5ad0d
commit 7905200eba
16 files changed
+44 -28

No files matched your search

+4 -4
View File
@@ -82,20 +82,20 @@ class SystemMgr
ScriptPointVector const& GetPointMoveList(uint32 creatureEntry) const
{
static ScriptPointVector empty;
PointMoveMap::const_iterator itr = m_mPointMoveMap.find(creatureEntry);
if (itr == m_mPointMoveMap.end())
return empty;
return _empty;
return itr->second;
}
protected:
TextDataMap m_mTextDataMap; //additional data for text strings
PointMoveMap m_mPointMoveMap; //coordinates for waypoints
private:
static ScriptPointVector const _empty;
};
#define sScriptSystemMgr ACE_Singleton<SystemMgr, ACE_Null_Mutex>::instance()