[7201] Prevent use 0 guid for pets and only odd guids for vehicles.

This commit is contained in:
VladimirMangos 2009-01-30 05:07:24 +03:00
parent 0fd361a0a3
commit 339c7f05f1
2 changed files with 1 additions and 7 deletions

View file

@ -5342,11 +5342,6 @@ void ObjectMgr::SetHighestGuids()
delete result;
}
// pet guids are not saved to DB, set to 0 (pet guid != pet id)
m_hiPetGuid = 0;
// same for vehicles
m_hiVehicleGuid = 0;
result = CharacterDatabase.Query( "SELECT MAX(guid) FROM item_instance" );
if( result )
{
@ -5500,7 +5495,6 @@ uint32 ObjectMgr::GenerateLowGuid(HighGuid guidhigh)
}
return m_hiPetGuid++;
case HIGHGUID_VEHICLE:
++m_hiVehicleGuid;
if(m_hiVehicleGuid>=0x00FFFFFF)
{
sLog.outError("Vehicle guid overflow!! Can't continue, shutting down server. ");

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7200"
#define REVISION_NR "7201"
#endif // __REVISION_NR_H__