Fix segfault with VendorRemoveAllItems

This commit is contained in:
Rochet2
2018-11-19 23:26:17 +02:00
committed by GitHub
parent 8697e932ae
commit 2c7623c9fe

View File

@@ -1895,7 +1895,7 @@ namespace LuaGlobalFunctions
if (!items || items->Empty())
return 0;
auto const & itemlist = items->m_items;
auto const itemlist = items->m_items;
for (auto itr = itemlist.begin(); itr != itemlist.end(); ++itr)
#if defined(CATA) || defined(MISTS)
eObjectMgr->RemoveVendorItem(entry, (*itr)->item, 1);