mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-06 12:44:09 +00:00
Fix linux warnings
This commit is contained in:
parent
c40fcdf39a
commit
c2ac6b3759
52 changed files with 165 additions and 70 deletions
|
@ -61,7 +61,7 @@ CParticleObject::CParticleObject() :
|
|||
m_nState(POBJECTSTATE_INITIALISED),
|
||||
m_pNext(NULL),
|
||||
m_pPrev(NULL),
|
||||
m_nRemoveTimer(NULL)
|
||||
m_nRemoveTimer(0)
|
||||
|
||||
{
|
||||
;
|
||||
|
@ -1127,13 +1127,21 @@ CParticleObject::SaveParticle(uint8 *buffer, uint32 *length)
|
|||
|
||||
for ( CParticleObject *p = pCloseListHead; p != NULL; p = p->m_pNext )
|
||||
{
|
||||
#ifdef FIX_BUGS
|
||||
*(CParticleObject*)buffer = *p;
|
||||
#else
|
||||
memcpy(buffer, p, sizeof(CParticleObject));
|
||||
#endif
|
||||
buffer += sizeof(CParticleObject);
|
||||
}
|
||||
|
||||
for ( CParticleObject *p = pFarListHead; p != NULL; p = p->m_pNext )
|
||||
{
|
||||
#ifdef FIX_BUGS
|
||||
*(CParticleObject*)buffer = *p;
|
||||
#else
|
||||
memcpy(buffer, p, sizeof(CParticleObject));
|
||||
#endif
|
||||
buffer += sizeof(CParticleObject);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue