mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-02 03:37:55 +03:00
Fixed crash at removal of aet_set or spr_set from respective dbs
This commit is contained in:
@@ -395,8 +395,10 @@ void sprite_database::remove_spr_set(uint32_t set_id, uint32_t index,
|
||||
auto i_end = spr_sets.end();
|
||||
auto i = i_begin;
|
||||
while (i != i_end)
|
||||
if (i->id == set_id)
|
||||
if (i->id == set_id) {
|
||||
i = spr_sets.erase(i);
|
||||
i_end = spr_sets.end();
|
||||
}
|
||||
else
|
||||
i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user