From 16b31c5a3ab0260f9763f4a33d8df153f02b533a Mon Sep 17 00:00:00 2001 From: hg <4683435+hgtw@users.noreply.github.com> Date: Tue, 28 Jun 2022 09:23:08 -0400 Subject: [PATCH] [Bug Fix] Fix empty spawned merchants (#2275) Regression from 763fc823 --- zone/client_process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/client_process.cpp b/zone/client_process.cpp index 473a215db..e0aac03e4 100644 --- a/zone/client_process.cpp +++ b/zone/client_process.cpp @@ -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; } }