diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-06-06 12:31:09 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-06-06 12:31:09 +0200 |
commit | 3f26250d73d5c196a66262821a7980ccdbd8deed (patch) | |
tree | 6dde51e7159bee42448d95fca35edc8e0be92561 /src/math/Matrix.h | |
parent | fixed linux saving (diff) | |
download | re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.gz re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.bz2 re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.lz re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.xz re3-3f26250d73d5c196a66262821a7980ccdbd8deed.tar.zst re3-3f26250d73d5c196a66262821a7980ccdbd8deed.zip |
Diffstat (limited to '')
-rw-r--r-- | src/math/Matrix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h index 5ec79aba..d8920a65 100644 --- a/src/math/Matrix.h +++ b/src/math/Matrix.h @@ -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; |