mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11157] Fixed typo in m_GameObjectFirstGuid init.
In result typo new summoned/spawned GO can get unexpected non-free guids with strange results dependent from load status of related static GO spawn (low chance conflict in fact). Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
76ea11489d
commit
85a8a3eed9
2 changed files with 2 additions and 2 deletions
|
|
@ -5634,7 +5634,7 @@ void ObjectMgr::SetHighestGuids()
|
||||||
result = WorldDatabase.Query("SELECT MAX(guid) FROM gameobject" );
|
result = WorldDatabase.Query("SELECT MAX(guid) FROM gameobject" );
|
||||||
if( result )
|
if( result )
|
||||||
{
|
{
|
||||||
m_CreatureFirstGuid = (*result)[0].GetUInt32()+1;
|
m_GameObjectFirstGuid = (*result)[0].GetUInt32()+1;
|
||||||
delete result;
|
delete result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11156"
|
#define REVISION_NR "11157"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue