Reduced the scope of a variable.
This commit is contained in:
parent
b3d48bd397
commit
78fd6086f5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue