mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-23 22:13:53 +00:00
WIP
This commit is contained in:
parent
116040914c
commit
b06ca47d46
@ -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);
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user