Permalink
Browse files

don't leak the item info

  • Loading branch information...
1 parent 4ce88f0 commit 61791a7f079a58d03c893d18f7e94a4fec348c9a @fizzet fizzet committed May 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 gemrb/core/Store.cpp
View
@@ -268,6 +268,7 @@ void Store::IdentifyItem(CREItem *item) const
if (itm->LoreToID <= Lore) {
item->Flags |= IE_INV_ITEM_IDENTIFIED;
}
+ gamedata->FreeItem(itm, item->ItemResRef, 0);
}
void Store::AddItem(CREItem *item)

0 comments on commit 61791a7

Please sign in to comment.