mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
fix(Core/Creature): Allow setting no equipment. (#10730)
* Core(Creature Equipment): Fix core to allow assigning no equipment
This commit is contained in:
@@ -426,7 +426,7 @@ bool Creature::InitEntry(uint32 Entry, const CreatureData* data)
|
||||
|
||||
// Load creature equipment
|
||||
if (!data || data->equipmentId == 0) // use default from the template
|
||||
LoadEquipment();
|
||||
LoadEquipment(0); // 0 means no equipment for creature table
|
||||
else
|
||||
{
|
||||
m_originalEquipmentId = data->equipmentId;
|
||||
|
||||
Reference in New Issue
Block a user