From 9f7a0d0e53c6312317822333fefbb1b180a8fff8 Mon Sep 17 00:00:00 2001 From: Emagi Date: Sat, 26 Jul 2025 07:26:02 -0400 Subject: [PATCH] use the seller_cid not the seller ptr --- source/WorldServer/Broker/BrokerManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/WorldServer/Broker/BrokerManager.cpp b/source/WorldServer/Broker/BrokerManager.cpp index 830ae44..862f6c2 100644 --- a/source/WorldServer/Broker/BrokerManager.cpp +++ b/source/WorldServer/Broker/BrokerManager.cpp @@ -273,7 +273,7 @@ bool BrokerManager::BuyItem(Client* buyer, int32 seller_cid, int64 uid, int32 qu { Client* seller = zone_list.GetClientByCharID(seller_cid); // establish if seller is online - if(buyer && buyer->GetCharacterID() == seller->GetCharacterID()) { + if(buyer && buyer->GetCharacterID() == seller_cid) { buyer->Message(CHANNEL_COLOR_RED, "You cannot buy from yourself!"); return false; }