Core/ItemHandler: Force size on abs() value calaulation
The size of the return value of abs() is natively defined, and can exceed 32 bits on x64 systems Fix by Zor --HG-- branch : trunk
This commit is contained in:
@@ -424,7 +424,7 @@ void WorldSession::HandleItemQuerySingleOpcode(WorldPacket & recv_data)
|
||||
data << pProto->GemProperties;
|
||||
data << pProto->RequiredDisenchantSkill;
|
||||
data << pProto->ArmorDamageModifier;
|
||||
data << abs(pProto->Duration); // added in 2.4.2.8209, duration (seconds)
|
||||
data << uint32(abs(pProto->Duration)); // added in 2.4.2.8209, duration (seconds)
|
||||
data << pProto->ItemLimitCategory; // WotLK, ItemLimitCategory
|
||||
data << pProto->HolidayId; // Holiday.dbc?
|
||||
SendPacket(&data);
|
||||
|
||||
Reference in New Issue
Block a user