Core/ObjectMgr: Prevent vehicleid from having an incorrect value when reloaded with .reload creature_template.

--HG--
branch : trunk
This commit is contained in:
enjoi
2010-08-18 15:49:51 +01:00
parent 71a5320eda
commit b8a613647f

View File

@@ -744,7 +744,10 @@ void ObjectMgr::CheckCreatureTemplate(CreatureInfo const* cInfo)
{
VehicleEntry const* vehId = sVehicleStore.LookupEntry(cInfo->VehicleId);
if (!vehId)
{
sLog.outErrorDb("Creature (Entry: %u) has a non-existing VehicleId (%u). This *WILL* cause the client to freeze!", cInfo->Entry, cInfo->VehicleId);
const_cast<CreatureInfo*>(cInfo)->VehicleId = 0;
}
}
if (cInfo->PetSpellDataId)