mirror of
https://github.com/halpz/re3.git
synced 2025-07-22 16:29:45 +00:00
Merge branch 'master' into miami
# Conflicts: # src/control/Garages.cpp # src/core/FileLoader.cpp # src/core/Streaming.cpp # src/core/Zones.cpp # src/core/Zones.h # src/render/Renderer.cpp # src/rw/VisibilityPlugins.cpp
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user