mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 14:20:33 +00:00
fixing some uninitialized stuff
This commit is contained in:
parent
408f47fc9d
commit
3f26250d73
8 changed files with 31 additions and 2 deletions
|
@ -30,7 +30,11 @@ public:
|
|||
RwMatrixDestroy(m_attachment);
|
||||
}
|
||||
void Attach(RwMatrix *matrix, bool owner = false){
|
||||
#ifdef FIX_BUGS
|
||||
if(m_attachment && m_hasRwMatrix)
|
||||
#else
|
||||
if(m_hasRwMatrix && m_attachment)
|
||||
#endif
|
||||
RwMatrixDestroy(m_attachment);
|
||||
m_attachment = matrix;
|
||||
m_hasRwMatrix = owner;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue