diff options
Diffstat (limited to 'src/game-server')
-rw-r--r-- | src/game-server/character.hpp | 2 | ||||
-rw-r--r-- | src/game-server/gamehandler.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |