mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/ObjectMgr: Prevent vehicleid from having an incorrect value when reloaded with .reload creature_template.
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user