account for null dumpmatix captions

This commit is contained in:
AzaezelX 2023-05-18 10:19:30 -05:00
parent 0d981b62cf
commit a03586a5fe

View file

@ -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;