mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Merge pull request #1022 from Azaezel/alpha41/matrixDumpSafety
account for null dumpmatix captions
This commit is contained in:
commit
0e087ffb7f
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ EulerF MatrixF::toEuler() const
|
||||||
|
|
||||||
void MatrixF::dumpMatrix(const char *caption /* =NULL */) 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);
|
FrameTemp<char> spacer(size+1);
|
||||||
char *spacerRef = spacer;
|
char *spacerRef = spacer;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue