summaryrefslogtreecommitdiffstats
path: root/src/math/Matrix.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-07 03:16:10 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-07 03:16:10 +0200
commit24bf4c2cbae67be4a0ac5f674f3fb5645e92516b (patch)
tree392d6754b618a6be48c391d86601da905299be89 /src/math/Matrix.h
parenta bit of fonts (diff)
parentMerge branch 'master' into miami (diff)
downloadre3-24bf4c2cbae67be4a0ac5f674f3fb5645e92516b.tar
re3-24bf4c2cbae67be4a0ac5f674f3fb5645e92516b.tar.gz
re3-24bf4c2cbae67be4a0ac5f674f3fb5645e92516b.tar.bz2
re3-24bf4c2cbae67be4a0ac5f674f3fb5645e92516b.tar.lz
re3-24bf4c2cbae67be4a0ac5f674f3fb5645e92516b.tar.xz
re3-24bf4c2cbae67be4a0ac5f674f3fb5645e92516b.tar.zst
re3-24bf4c2cbae67be4a0ac5f674f3fb5645e92516b.zip
Diffstat (limited to 'src/math/Matrix.h')
-rw-r--r--src/math/Matrix.h4
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;