mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Prevent call to dStrlen(NULL).
This commit is contained in:
parent
feec36731e
commit
b94679aebc
1 changed files with 1 additions and 1 deletions
|
|
@ -736,7 +736,7 @@ bool GuiGameListMenuProfile::onAdd()
|
|||
// We can't call enforceConstraints() here because incRefCount initializes
|
||||
// some of the things to enforce. Do a basic sanity check here instead.
|
||||
|
||||
if( !dStrlen(mBitmapName) )
|
||||
if( !mBitmapName || !dStrlen(mBitmapName) )
|
||||
{
|
||||
Con::errorf( "GuiGameListMenuProfile: %s can't be created without a bitmap. Please add a 'Bitmap' property to the object definition.", getName() );
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue