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);
|
||||
load_starter_id(file_id);
|
||||
load_starter(starter_id);
|
||||
|
||||
if (starter_mirrored)
|
||||
mirror_starter();
|
||||
|
||||
if (starter_flipped)
|
||||
flip_starter();
|
||||
if (starter_id[0] != '\0')
|
||||
{
|
||||
load_starter(starter_id);
|
||||
|
||||
if (starter_mirrored)
|
||||
mirror_starter();
|
||||
|
||||
if (starter_flipped)
|
||||
flip_starter();
|
||||
}
|
||||
}
|
||||
|
||||
free(fname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue