summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/item.cpp b/src/item.cpp
index 487f17da..946181dc 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -31,3 +31,9 @@ Item::Item(int id, int quantity) :
mEquipment = getInfo().getType();
}
+void Item::setId(int id)
+{
+ mId = id;
+ mEquipment = getInfo().getType();
+}
+