Commit 064e75d9 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Who dares move my sprite area without my noticing?

parent 6244b2ae
......@@ -2326,10 +2326,11 @@ void menus_file_handler (void *handle, char *hit)
file->sprites = nextsprite;
for (loop = 0; loop < count; loop++)
{
sprite = nextsprite;
sprite = nextsprite;
sid.s.name = tosortptr[loop]->tosort;
sid.tag = sprite_id_name;
sprite_select_rp(sarea, &sid, &sid.s.addr); /* Will succeed as they were there 15 lines ago */
sarea = window->data->file.spritearea; /* Incase flex shuffled */
sprite_select_rp(sarea, &sid, &sid.s.addr); /* Will succeed as they were there about 15 lines ago */
size = ((sprite_header *) sid.s.addr)->next;
ftracef2("sort selected %08X size %d\n",(int)sid.s.addr, size);
memcpy((char *)sorted + next,(char *)sid.s.addr, size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment