From a03586a5fedc5f4872bb1cecb14b564a2b7af4f3 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Thu, 18 May 2023 10:19:30 -0500 Subject: [PATCH] account for null dumpmatix captions --- Engine/source/math/mMatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/math/mMatrix.cpp b/Engine/source/math/mMatrix.cpp index 0131699b9..d8205838f 100644 --- a/Engine/source/math/mMatrix.cpp +++ b/Engine/source/math/mMatrix.cpp @@ -191,7 +191,7 @@ EulerF MatrixF::toEuler() const void MatrixF::dumpMatrix(const char *caption /* =NULL */) const { - U32 size = dStrlen(caption); + U32 size = (caption == NULL)? 0 : dStrlen(caption); FrameTemp spacer(size+1); char *spacerRef = spacer;