fix delete_items not properly unregistering entities

This commit is contained in:
Andrei Alexeyev 2018-08-31 06:20:47 +03:00
parent 01795250bb
commit 795668be87
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4

View file

@ -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) {