diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-06-07 03:15:10 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-06-07 03:15:10 +0200 |
commit | 1c0189979965cb237aa5fb300a5522e1408123ac (patch) | |
tree | 791f188c7d4f87111bf3235b87f4b74e2fbebf9e /src/math | |
parent | CBike done (diff) | |
parent | FONT_BANK renamed to FONT_STANDARD (diff) | |
download | re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.gz re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.bz2 re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.lz re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.xz re3-1c0189979965cb237aa5fb300a5522e1408123ac.tar.zst re3-1c0189979965cb237aa5fb300a5522e1408123ac.zip |
Diffstat (limited to 'src/math')
-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 46789c94..2d721e93 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; |