mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Fixed null profile crash
If the profile was null it would crash.
This commit is contained in:
parent
fe544597e3
commit
789cc47b67
1 changed files with 1 additions and 1 deletions
|
|
@ -622,7 +622,7 @@ S32 GuiTabBookCtrl::calculatePageTabWidth( GuiTabPageCtrl *page )
|
|||
|
||||
const char* text = page->getText();
|
||||
|
||||
if( !text || dStrlen(text) == 0 || mProfile->mFont == NULL )
|
||||
if( !text || dStrlen(text) == 0 || mProfile == NULL || mProfile->mFont == NULL )
|
||||
return mMinTabWidth;
|
||||
|
||||
GFont *font = mProfile->mFont;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue