Parcourir la source

account for null dumpmatix captions

AzaezelX il y a 2 ans
Parent
commit
a03586a5fe
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Engine/source/math/mMatrix.cpp

+ 1 - 1
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<char> spacer(size+1);
    char *spacerRef = spacer;