mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Add static String::isEmpty(const char*) method and use it to verify path for Forest::saveDataFile() is not empty.
This commit is contained in:
parent
b3170bcddf
commit
3ddd9b8a4c
3 changed files with 7 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ void Forest::createNewFile()
|
|||
|
||||
void Forest::saveDataFile( const char *path )
|
||||
{
|
||||
if ( path )
|
||||
if ( path && !String::isEmpty(path))
|
||||
mDataFileName = StringTable->insert( path );
|
||||
|
||||
if ( mData )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue