Add static String::isEmpty(const char*) method and use it to verify path for Forest::saveDataFile() is not empty.

This commit is contained in:
RichardRanft 2015-05-06 15:39:02 -07:00
parent b3170bcddf
commit 3ddd9b8a4c
3 changed files with 7 additions and 1 deletions

View file

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