mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[6902] Fixed a bug in GetScriptId related to missing script names.
This commit is contained in:
parent
027a3ab0bc
commit
d8be07eabc
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "6901"
|
||||
#define REVISION_NR "6902"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue