Merge pull request #12 from andychase/patch-1

Edit sdlStateName, fixing SDL states on a Mac
This commit is contained in:
DoctorWho11 2016-07-03 17:16:29 -04:00 committed by GitHub
commit e64593e063
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ static char * sdlStateName(int num)
{
static char stateName[2048];
if(saveDir)
if(saveDir && strlen(saveDir))
sprintf(stateName, "%s/%s%d.sgm", saveDir, sdlGetFilename(filename),
num+1);
else if (homeDir)