This commit is contained in:
neckkola 2025-04-13 12:54:41 -03:00 committed by Mitch Freeman
parent 116040914c
commit b06ca47d46
2 changed files with 3 additions and 7 deletions

View File

@ -247,11 +247,7 @@ namespace EQ
const std::string &GetUniqueID() const { return m_unique_id; }
//std::string &GetSerialNumber2() const { return m_serial_number2; }
void SetUniqueID(std::string sn) { m_unique_id = std::move(sn); }
void CreateUniqueID() const
{
m_unique_id = GenerateUniqueID();
}
void CreateUniqueID() const { m_unique_id = GenerateUniqueID(); }
std::map<std::string, ::Timer>& GetTimers() const { return m_timers; }
void SetTimer(std::string name, uint32 time);

View File

@ -1433,9 +1433,9 @@ void Client::BuyTraderItem(const EQApplicationPacket *app)
return;
}
uint32 quantity = in->quantity;
int16 quantity = static_cast<int16>(in->quantity);
inst_copy->SetCharges(quantity);
if (inst_copy->IsStackable()) {
if (inst_copy->IsStackable() && quantity != buy_inst->GetCharges()) {
inst_copy->CreateUniqueID();
}