fix delete_items not properly unregistering entities
This commit is contained in:
parent
01795250bb
commit
795668be87
1 changed files with 4 additions and 1 deletions
|
@ -94,7 +94,10 @@ Item* create_bpoint(complex pos) {
|
|||
}
|
||||
|
||||
void delete_items(void) {
|
||||
objpool_release_alist(stage_object_pools.items, &global.items);
|
||||
for(Item *i = global.items.first, *next; i; i = next) {
|
||||
next = i->next;
|
||||
delete_item(i);
|
||||
}
|
||||
}
|
||||
|
||||
complex move_item(Item *i) {
|
||||
|
|
Loading…
Reference in a new issue