Reduced the scope of a variable.

This commit is contained in:
Linus_Probert 2018-01-30 14:00:52 +01:00
parent b3d48bd397
commit 78fd6086f5
1 changed files with 1 additions and 2 deletions

View File

@ -42,14 +42,13 @@ void
item_destroy(Item *item)
{
LinkedList *items;
Item *subitem;
if (item->sprite)
sprite_destroy(item->sprite);
items = item->items;
while (items != NULL) {
subitem = items->data;
Item *subitem = items->data;
items->data = NULL;
items = items->next;
item_destroy(subitem);