diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-01 07:23:58 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-01 07:23:58 +0000 |
commit | 6eb86a3d23953856eeac3a4e7c4f52143e24f880 (patch) | |
tree | ec27e96f1952de3768c15f17f93f4876408e24a6 /src/item.cpp | |
parent | 36d28236321b6a2824ad4f394faeabbf79626808 (diff) | |
download | mana-6eb86a3d23953856eeac3a4e7c4f52143e24f880.tar.gz mana-6eb86a3d23953856eeac3a4e7c4f52143e24f880.tar.bz2 mana-6eb86a3d23953856eeac3a4e7c4f52143e24f880.tar.xz mana-6eb86a3d23953856eeac3a4e7c4f52143e24f880.zip |
Fixed update of equipment flag, so that items can be equipped properly.
Diffstat (limited to 'src/item.cpp')
-rw-r--r-- | src/item.cpp | 6 |
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(); +} + |