summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game-server/monster.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game-server/monster.hpp b/src/game-server/monster.hpp
index 86a69ac8..0d5d9688 100644
--- a/src/game-server/monster.hpp
+++ b/src/game-server/monster.hpp
@@ -98,13 +98,13 @@ class MonsterClass
/**
* Sets a being base attribute.
*/
- void setAttribute(size_t attribute, int value)
- { mAttributes.at(attribute) = value; }
+ void setAttribute(int attribute, double value)
+ { mAttributes[attribute] = value; }
/**
* Returns a being base attribute.
*/
- int getAttribute(unsigned int attribute) const
+ double getAttribute(int attribute) const
{ return mAttributes.at(attribute); }
/** Sets collision circle radius. */
@@ -181,7 +181,7 @@ class MonsterClass
private:
unsigned short mID;
MonsterDrops mDrops;
- std::map<unsigned int, double> mAttributes; /**< Base attributes of the monster. */
+ std::map<int, double> mAttributes; /**< Base attributes of the monster. */
float mSpeed; /**< The monster class speed in tiles per second */
int mSize;
int mExp;