Reduced the scope of a variable.
This commit is contained in:
parent
b3d48bd397
commit
78fd6086f5
|
@ -42,14 +42,13 @@ void
|
||||||
item_destroy(Item *item)
|
item_destroy(Item *item)
|
||||||
{
|
{
|
||||||
LinkedList *items;
|
LinkedList *items;
|
||||||
Item *subitem;
|
|
||||||
|
|
||||||
if (item->sprite)
|
if (item->sprite)
|
||||||
sprite_destroy(item->sprite);
|
sprite_destroy(item->sprite);
|
||||||
|
|
||||||
items = item->items;
|
items = item->items;
|
||||||
while (items != NULL) {
|
while (items != NULL) {
|
||||||
subitem = items->data;
|
Item *subitem = items->data;
|
||||||
items->data = NULL;
|
items->data = NULL;
|
||||||
items = items->next;
|
items = items->next;
|
||||||
item_destroy(subitem);
|
item_destroy(subitem);
|
||||||
|
|
Loading…
Reference in New Issue