mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 01:48:44 +00:00
Changed: rollback fixes of Strict aliasing warnings
--HG-- branch : item_group
This commit is contained in:
parent
de949a60a9
commit
ae6b3e38a0
1 changed files with 7 additions and 3 deletions
|
@ -424,14 +424,18 @@ namespace INVENTORIES
|
|||
private:
|
||||
|
||||
struct COneProp
|
||||
{
|
||||
union
|
||||
{
|
||||
TItemPropId ItemPropId;
|
||||
uint32 ItemPropIdUint32;
|
||||
};
|
||||
sint32 ItemPropValue;
|
||||
|
||||
void serial( NLMISC::CBitMemStream& bms )
|
||||
{
|
||||
bms.serial( (uint32&)ItemPropId, NbBitsForItemPropId );
|
||||
bms.serial( (uint32&)ItemPropValue, CItemSlot::DataBitSize[ItemPropId] );
|
||||
bms.serial((uint32&)ItemPropIdUint32, NbBitsForItemPropId);
|
||||
bms.serial((uint32&)ItemPropValue, CItemSlot::DataBitSize[ItemPropId]);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue