From 6d073b16ac9cfaf431baa6ddef7554fa65a99d4e Mon Sep 17 00:00:00 2001 From: Roderic Morris Date: Fri, 4 Jul 2008 00:56:29 +0000 Subject: fix errors in the last commit --- src/game-server/character.hpp | 2 +- src/game-server/gamehandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game-server') diff --git a/src/game-server/character.hpp b/src/game-server/character.hpp index 220f5c38..d3b31276 100644 --- a/src/game-server/character.hpp +++ b/src/game-server/character.hpp @@ -189,7 +189,7 @@ class Character : public Being /** Gets the party id of the character */ int getParty() const - { return mPartyId; } + { return mParty; } /** Sets the party id of the character */ void setParty(int party) diff --git a/src/game-server/gamehandler.cpp b/src/game-server/gamehandler.cpp index 3afc4bed..0b0a795e 100644 --- a/src/game-server/gamehandler.cpp +++ b/src/game-server/gamehandler.cpp @@ -122,7 +122,7 @@ void GameHandler::updateCharacter(int charid, int partyid) i_end = clients.end(); i != i_end; ++i) { GameClient *c = static_cast< GameClient * >(*i); - if (c->character->getDatabaseID() == id) + if (c->character->getDatabaseID() == charid) { c->character->setParty(partyid); } -- cgit v1.2.3-60-g2f50