Changed: rollback fixes of Strict aliasing warnings

--HG--
branch : compatibility-develop
hg/compatibility-develop
Nuno Gonçalves 8 years ago
parent b40d52a5b1
commit d33d0ffdc5

@ -424,13 +424,17 @@ namespace INVENTORIES
private: private:
struct COneProp struct COneProp
{
union
{ {
TItemPropId ItemPropId; 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]);
} }
}; };

Loading…
Cancel
Save