fix in save for win

This commit is contained in:
p.kosyh 2010-06-07 10:48:34 +00:00
parent 6fa2586afe
commit f86dca706b

View file

@ -209,9 +209,10 @@ char *game_save_path( int cr, int nr )
} }
if (!p) if (!p)
return NULL; return NULL;
strcpy( appdir, p ); strcpy( appdir, p );
if (cr && mkdir(save_path) && errno != EEXIST) if (cr && mkdir(appdir) && errno != EEXIST)
return NULL; return NULL;
snprintf(save_path, sizeof(save_path) - 1 , "%s/saves", appdir); snprintf(save_path, sizeof(save_path) - 1 , "%s/saves", appdir);