mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
fix: crash caused by VendorRemoveAllItems (#142)
This commit is contained in:
@@ -2066,7 +2066,7 @@ namespace LuaGlobalFunctions
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
auto const& itemlist = items->m_items;
|
auto const& itemlist = items->m_items;
|
||||||
for (auto itr = itemlist.begin(); itr != itemlist.end(); ++itr)
|
for (auto itr = itemlist.rbegin(); itr != itemlist.rend(); ++itr)
|
||||||
#if defined(CATA) || defined(MISTS)
|
#if defined(CATA) || defined(MISTS)
|
||||||
eObjectMgr->RemoveVendorItem(entry, (*itr)->item, 1);
|
eObjectMgr->RemoveVendorItem(entry, (*itr)->item, 1);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user