Changed: rollback fixes of Strict aliasing warnings

--HG--
branch : item_group
This commit is contained in:
Nuno Gonçalves 2017-04-07 02:46:08 +02:00
parent de949a60a9
commit ae6b3e38a0

View file

@ -425,13 +425,17 @@ private:
struct COneProp struct COneProp
{ {
TItemPropId ItemPropId; union
{
TItemPropId ItemPropId;
uint32 ItemPropIdUint32;
};
sint32 ItemPropValue; sint32 ItemPropValue;
void serial( NLMISC::CBitMemStream& bms ) void serial( NLMISC::CBitMemStream& bms )
{ {
bms.serial( (uint32&)ItemPropId, NbBitsForItemPropId ); bms.serial((uint32&)ItemPropIdUint32, NbBitsForItemPropId);
bms.serial( (uint32&)ItemPropValue, CItemSlot::DataBitSize[ItemPropId] ); bms.serial((uint32&)ItemPropValue, CItemSlot::DataBitSize[ItemPropId]);
} }
}; };