[12136] Fix typos

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-08-29 11:40:19 +03:00 committed by Antz
parent 05b6f3072b
commit faec714783
7 changed files with 24 additions and 24 deletions

View file

@ -19675,12 +19675,11 @@ bool Player::BuyCurrencyFromVendorSlot(ObjectGuid vendorGuid, uint32 vendorslot,
if (crItem->item != currencyId) // store diff item (cheating)
return false;
if (crItem->maxcount != count)
if (!crItem->maxcount)
{
DEBUG_LOG("WORLD: BuyCurrencyFromVendorSlot - %s: count (%u) != crItem->maxcount (%u) for currency %u and player %s.",
vendorGuid.GetString().c_str(), count, crItem->maxcount, currencyId, GetGuidStr().c_str());
count = crItem->maxcount;
DEBUG_LOG("WORLD: BuyCurrencyFromVendorSlot - %s: crItem->maxcount (%u) == 0 for currency %u and player %s.",
vendorGuid.GetString().c_str(), crItem->maxcount, currencyId, GetGuidStr().c_str());
return false;
}
if (uint32 extendedCostId = crItem->ExtendedCost)