summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/item/item.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/item/item.cpp b/src/resources/item/item.cpp
index 45e365553..c2c25a78c 100644
--- a/src/resources/item/item.cpp
+++ b/src/resources/item/item.cpp
@@ -190,6 +190,7 @@ void Item::addCard(const int card)
void Item::setOptions(const ItemOptionsList *const options)
{
+ delete2(mOptions);
mOptions = ItemOptionsList::copy(options);
}