Fix resell issue (use uint16 instead of uint8 for Index)

merge/2021-11-19
Nuno Gonçalves (Ulukyn) 3 years ago committed by kaetemi
parent 31a454b21d
commit a8a0d9162e
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -1285,14 +1285,14 @@ void CBotChatPageTrade::confirmTrade( bool enableResale )
if(GenericMsgHeaderMngr.pushNameToStream(msg, out))
{
uint8 u8Inv = (uint8) _CurrItemInventory;
uint8 u8Index = (uint8) _CurrItemIndex;
uint16 u16Index = (uint16) _CurrItemIndex;
uint32 u32resalePrice = (uint32)max((sint32)0, resalePrice);
out.serial(u8Inv);
out.serial(u8Index);
out.serial(u16Index);
out.serial(u16Quantity);
out.serial(u32resalePrice);
NetMngr.push(out);
//nlinfo("impulseCallBack sent: %s %d %d %d %d", msg, u8Inv, u8Index, u16Quantity, u32resalePrice);
//nlinfo("impulseCallBack sent: %s %d %d %d %d", msg, u8Inv, u16Index, u16Quantity, u32resalePrice);
}
else
nlwarning(" unknown message name '%s'", msg);

Loading…
Cancel
Save