1
0

use the seller_cid not the seller ptr

This commit is contained in:
Emagi 2025-07-26 07:26:02 -04:00
parent f60d261f00
commit 9f7a0d0e53

View File

@ -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;
}