From 9b680f95087290315c24a04535f1626acd8ec9a7 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 9 Apr 2009 23:58:34 +0200 Subject: Actually use ItemType instead of short Plus some random cleanups. --- src/resources/iteminfo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/iteminfo.h') diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 5c76af40..3329d95b 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -156,10 +156,10 @@ class ItemInfo const std::string &getEffect() const { return mEffect; } - void setType(short type) + void setType(ItemType type) { mType = type; } - short getType() const + ItemType getType() const { return mType; } void setWeight(short weight) @@ -196,7 +196,7 @@ class ItemInfo std::string mName; std::string mDescription; /**< Short description. */ std::string mEffect; /**< Description of effects. */ - char mType; /**< Item type. */ + ItemType mType; /**< Item type. */ std::string mParticle; /**< Particle effect used with this item */ short mWeight; /**< Weight in grams. */ int mView; /**< Item ID of how this item looks. */ -- cgit v1.2.3-70-g09d2