Browse Source

operand fix

Image 2 years ago
parent
commit
a4495ced4a
2 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/client.cpp
  2. BIN
      server/EQ2World__Debug_x64.exe

+ 1 - 1
EQ2/source/WorldServer/client.cpp

@@ -6897,7 +6897,7 @@ void Client::BuyItem(int32 item_id, int16 quantity) {
 								Message(CHANNEL_MERCHANT_BUY_SELL, "You buy %s from %s for%s.", master_item->CreateItemLink(GetVersion()).c_str(), spawn->GetName(), GetCoinMessage(ItemInfo->price_coins * quantity).c_str());
 							bool itemDeleted = false;
 							AddItem(item, &itemDeleted);
-							if(itemDeleted) {
+							if(!itemDeleted) {
 								CheckPlayerQuestsItemUpdate(item);
 								if (item && total_available < 0xFF) {
 									world.DecreaseMerchantQuantity(spawn->GetMerchantID(), item_id, quantity);

BIN
server/EQ2World__Debug_x64.exe