diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 18:58:50 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 19:00:24 +0100 |
commit | 232792634184759eec072782be875cb0f31b7247 (patch) | |
tree | 9c3bf65f3429d37d88247343ab82d6ff68a8cfd3 /src/game-server/being.hpp | |
parent | c0a5b22aa8f90c3d5de4a4b7495cf157d9a189d1 (diff) | |
download | manaserv-232792634184759eec072782be875cb0f31b7247.tar.gz manaserv-232792634184759eec072782be875cb0f31b7247.tar.bz2 manaserv-232792634184759eec072782be875cb0f31b7247.tar.xz manaserv-232792634184759eec072782be875cb0f31b7247.zip |
Fixed crash when an invalid status effect is requested
Log an error instead.
Diffstat (limited to 'src/game-server/being.hpp')
-rw-r--r-- | src/game-server/being.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/being.hpp b/src/game-server/being.hpp index d0ca4be3..35c3bb62 100644 --- a/src/game-server/being.hpp +++ b/src/game-server/being.hpp @@ -308,12 +308,12 @@ class Being : public Actor /** * Returns true if the being has a status effect */ - bool hasStatusEffect(int id); + bool hasStatusEffect(int id) const; /** * Returns the time of the status effect if in effect, or 0 if not */ - unsigned getStatusEffectTime(int id); + unsigned getStatusEffectTime(int id) const; /** * Changes the time of the status effect (if in effect) |