Skip to content

Commit

Permalink
[11157] Fixed typo in m_GameObjectFirstGuid init.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
oceanor authored and VladimirMangos committed Feb 13, 2011
1 parent 2969cf8 commit dd0f7b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/ObjectMgr.cpp
Expand Up @@ -5634,7 +5634,7 @@ void ObjectMgr::SetHighestGuids()
result = WorldDatabase.Query("SELECT MAX(guid) FROM gameobject" );
if( result )
{
m_CreatureFirstGuid = (*result)[0].GetUInt32()+1;
m_GameObjectFirstGuid = (*result)[0].GetUInt32()+1;
delete result;
}

Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11156"
#define REVISION_NR "11157"
#endif // __REVISION_NR_H__

0 comments on commit dd0f7b2

Please sign in to comment.