Sfoglia il codice sorgente

account for null dumpmatix captions

AzaezelX 2 anni fa
parent
commit
a03586a5fe
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;