mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 16:46:17 +00:00
Changed: rollback fixes of Strict aliasing warnings
--HG-- branch : compatibility-develop
This commit is contained in:
parent
b40d52a5b1
commit
d33d0ffdc5
1 changed files with 7 additions and 3 deletions
|
@ -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]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue