fixing some uninitialized stuff

This commit is contained in:
Nikolay Korolev
2020-06-06 13:31:09 +03:00
parent 408f47fc9d
commit 3f26250d73
8 changed files with 31 additions and 2 deletions

View File

@ -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;