mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 11:18:59 +00:00
fix head/hand atomics
This commit is contained in:
parent
ad0b99231e
commit
964acba083
2 changed files with 11 additions and 1 deletions
|
@ -21,16 +21,19 @@ CPedModelInfo::DeleteRwObject(void)
|
||||||
frame = RpAtomicGetFrame(m_head);
|
frame = RpAtomicGetFrame(m_head);
|
||||||
RpAtomicDestroy(m_head);
|
RpAtomicDestroy(m_head);
|
||||||
RwFrameDestroy(frame);
|
RwFrameDestroy(frame);
|
||||||
|
m_head = nil;
|
||||||
}
|
}
|
||||||
if(m_lhand){
|
if(m_lhand){
|
||||||
frame = RpAtomicGetFrame(m_lhand);
|
frame = RpAtomicGetFrame(m_lhand);
|
||||||
RpAtomicDestroy(m_lhand);
|
RpAtomicDestroy(m_lhand);
|
||||||
RwFrameDestroy(frame);
|
RwFrameDestroy(frame);
|
||||||
|
m_lhand = nil;
|
||||||
}
|
}
|
||||||
if(m_rhand){
|
if(m_rhand){
|
||||||
frame = RpAtomicGetFrame(m_rhand);
|
frame = RpAtomicGetFrame(m_rhand);
|
||||||
RpAtomicDestroy(m_rhand);
|
RpAtomicDestroy(m_rhand);
|
||||||
RwFrameDestroy(frame);
|
RwFrameDestroy(frame);
|
||||||
|
m_rhand = nil;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
CClumpModelInfo::DeleteRwObject(); // PC calls this first
|
CClumpModelInfo::DeleteRwObject(); // PC calls this first
|
||||||
|
|
|
@ -36,7 +36,14 @@ public:
|
||||||
|
|
||||||
static RwObjectNameIdAssocation m_pPedIds[PED_NODE_MAX];
|
static RwObjectNameIdAssocation m_pPedIds[PED_NODE_MAX];
|
||||||
|
|
||||||
CPedModelInfo(void) : CClumpModelInfo(MITYPE_PED) { m_hitColModel = nil; }
|
CPedModelInfo(void) : CClumpModelInfo(MITYPE_PED) {
|
||||||
|
m_hitColModel = nil;
|
||||||
|
#ifdef PED_SKIN
|
||||||
|
m_head = nil;
|
||||||
|
m_lhand = nil;
|
||||||
|
m_rhand = nil;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
~CPedModelInfo(void) { delete m_hitColModel; }
|
~CPedModelInfo(void) { delete m_hitColModel; }
|
||||||
void DeleteRwObject(void);
|
void DeleteRwObject(void);
|
||||||
void SetClump(RpClump *);
|
void SetClump(RpClump *);
|
||||||
|
|
Loading…
Reference in a new issue