use the seller_cid not the seller ptr
This commit is contained in:
parent
f60d261f00
commit
9f7a0d0e53
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user