mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-01 07:12:26 +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; }
|
const std::string &GetUniqueID() const { return m_unique_id; }
|
||||||
//std::string &GetSerialNumber2() const { return m_serial_number2; }
|
//std::string &GetSerialNumber2() const { return m_serial_number2; }
|
||||||
void SetUniqueID(std::string sn) { m_unique_id = std::move(sn); }
|
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; }
|
std::map<std::string, ::Timer>& GetTimers() const { return m_timers; }
|
||||||
void SetTimer(std::string name, uint32 time);
|
void SetTimer(std::string name, uint32 time);
|
||||||
|
|||||||
@ -1433,9 +1433,9 @@ void Client::BuyTraderItem(const EQApplicationPacket *app)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 quantity = in->quantity;
|
int16 quantity = static_cast<int16>(in->quantity);
|
||||||
inst_copy->SetCharges(quantity);
|
inst_copy->SetCharges(quantity);
|
||||||
if (inst_copy->IsStackable()) {
|
if (inst_copy->IsStackable() && quantity != buy_inst->GetCharges()) {
|
||||||
inst_copy->CreateUniqueID();
|
inst_copy->CreateUniqueID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user