Explorar o código

account for null dumpmatix captions

AzaezelX %!s(int64=2) %!d(string=hai) anos
pai
achega
a03586a5fe
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;