ソースを参照

Merge pull request #1022 from Azaezel/alpha41/matrixDumpSafety

account for null dumpmatix captions
Brian Roberts 2 年 前
コミット
0e087ffb7f
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;