Avoid crashing in mirror_starter() when there is no starter.

This commit is contained in:
John Popplewell 2007-12-31 03:03:49 +00:00
parent aee821577a
commit ba2137d528

View file

@ -11061,13 +11061,16 @@ static void load_current(void)
{ {
autoscale_copy_smear_free(tmp, canvas, SDL_BlitSurface); autoscale_copy_smear_free(tmp, canvas, SDL_BlitSurface);
load_starter_id(file_id); load_starter_id(file_id);
load_starter(starter_id); if (starter_id[0] != '\0')
{
if (starter_mirrored) load_starter(starter_id);
mirror_starter();
if (starter_mirrored)
if (starter_flipped) mirror_starter();
flip_starter();
if (starter_flipped)
flip_starter();
}
} }
free(fname); free(fname);