[Bug Fix] Fix empty spawned merchants (#2275)

Regression from 763fc823
This commit is contained in:
hg 2022-06-28 09:23:08 -04:00 committed by GitHub
parent 28b07d635a
commit 16b31c5a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -823,10 +823,10 @@ void Client::BulkSendMerchantInventory(int merchant_id, int npcid) {
const EQ::ItemData *item = nullptr;
auto merchant_list = zone->merchanttable[merchant_id];
auto npc = entity_list.GetMobByNpcTypeID(npcid);
if (!merchant_list.size() == 0) {
if (merchant_list.empty()) {
zone->LoadNewMerchantData(merchant_id);
merchant_list = zone->merchanttable[merchant_id];
if (!merchant_list.size()) {
if (merchant_list.empty()) {
return;
}
}