Avoid crashing in mirror_starter() when there is no starter.
This commit is contained in:
parent
aee821577a
commit
ba2137d528
1 changed files with 10 additions and 7 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue