Преглед изворни кода

account for null dumpmatix captions

AzaezelX пре 2 година
родитељ
комит
a03586a5fe
1 измењених фајлова са 1 додато и 1 уклоњено
  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;