From c1c6516e9275835b7891a93c539d5d9bb0e42bfb Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 15 Oct 2024 15:01:48 -0500 Subject: [PATCH] Simplify --- zone/trading.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/zone/trading.cpp b/zone/trading.cpp index 3e7bb95c40c..d6895c6c3b5 100644 --- a/zone/trading.cpp +++ b/zone/trading.cpp @@ -881,7 +881,7 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st {"gold", trade->gp}, {"platinum", trade->pp} }; - + std::vector list(items.begin(), items.end()); for (EQ::ItemInstance *inst: items) { if (!inst || !inst->GetItem()) { continue; @@ -889,13 +889,6 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st std::string item_id = fmt::format("{}", inst->GetItem()->ID); handin[item_id] += inst->GetCharges(); - } - - std::vector list(items.begin(), items.end()); - for (EQ::ItemInstance *inst: items) { - if (!inst || !inst->GetItem()) { - continue; - } item_list.emplace_back(inst); }