Explorar o código

Merge pull request #1022 from Azaezel/alpha41/matrixDumpSafety

account for null dumpmatix captions
Brian Roberts %!s(int64=2) %!d(string=hai) anos
pai
achega
0e087ffb7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;