[6902] Fixed a bug in GetScriptId related to missing script names.

This commit is contained in:
Wyk3d 2008-12-12 15:45:02 +02:00
parent 027a3ab0bc
commit d8be07eabc
2 changed files with 2 additions and 2 deletions

View file

@ -7243,7 +7243,7 @@ uint32 ObjectMgr::GetScriptId(const char *name)
if(!name) return 0;
ScriptNameMap::const_iterator itr =
std::lower_bound(m_scriptNames.begin(), m_scriptNames.end(), name);
if(itr == m_scriptNames.end()) return 0;
if(itr == m_scriptNames.end() || *itr != name) return 0;
return itr - m_scriptNames.begin();
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6901"
#define REVISION_NR "6902"
#endif // __REVISION_NR_H__