scummvm/scummvm — comment on commit 8e79608a1de77c54cc6bf0eb23b32b1cc3175677
File:  line 0
By tramboi:

Ok so let's leave it this way if it is clearer to you.
Anyway when is performance relevant in ScummVM on current machines...
You could put a multimap of priority->sprite to make it even clearer.