mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Fix crash when displaying Mirror Image with hidden transmogs (#94)
* Fix crash when displaying Mirror Image with hidden transmogs * brackets Co-authored-by: Nefertumm <nefertum.dev@protonmail.com>
This commit is contained in:
@@ -720,8 +720,17 @@ public:
|
||||
void OnMirrorImageDisplayItem(const Item *item, uint32 &display) override
|
||||
{
|
||||
if (uint32 entry = sTransmogrification->GetFakeEntry(item->GetGUID()))
|
||||
{
|
||||
if (entry == HIDDEN_ITEM_ID)
|
||||
{
|
||||
display = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
display=uint32(sObjectMgr->GetItemTemplate(entry)->DisplayInfoID);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class unit_transmog_script : public UnitScript
|
||||
|
||||
Reference in New Issue
Block a user