summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-10 17:48:20 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-04-10 17:48:20 +0200
commitc1ba76b936c04dbdcdcc3ed86f919a949c8aa63f (patch)
tree6e97edd47cee91e03516787777a77c06f0f70369 /src
parentf95135686eda29b8677b53e782c849ac2a7a7e37 (diff)
downloadmanaserv-c1ba76b936c04dbdcdcc3ed86f919a949c8aa63f.tar.gz
manaserv-c1ba76b936c04dbdcdcc3ed86f919a949c8aa63f.tar.xz
manaserv-c1ba76b936c04dbdcdcc3ed86f919a949c8aa63f.zip
Fixed @kill killing yourself
Diffstat (limited to 'src')
-rw-r--r--src/game-server/commandhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/commandhandler.cpp b/src/game-server/commandhandler.cpp
index 3596828..d38828f 100644
--- a/src/game-server/commandhandler.cpp
+++ b/src/game-server/commandhandler.cpp
@@ -1239,7 +1239,7 @@ static void handleKill(Character *player, std::string &args)
}
// kill the player
- player->setAttribute(ATTR_HP, 0);
+ other->setAttribute(ATTR_HP, 0);
// feedback
std::stringstream targetMsg;