summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-17 14:51:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-17 14:51:23 +0300
commitc4802097dec05ca39e395e7dba3a55dba70edbe8 (patch)
treeb78e4d197a6e88dd646bc46b1c00286f97c63011 /src/net/tmwa
parente0bd37fd01e8c14bf6d044382ac12cc11f5eaa43 (diff)
downloadplus-c4802097dec05ca39e395e7dba3a55dba70edbe8.tar.gz
plus-c4802097dec05ca39e395e7dba3a55dba70edbe8.tar.bz2
plus-c4802097dec05ca39e395e7dba3a55dba70edbe8.tar.xz
plus-c4802097dec05ca39e395e7dba3a55dba70edbe8.zip
Add static in chatserverhandler.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/charserverhandler.cpp4
-rw-r--r--src/net/tmwa/charserverhandler.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 8bdd49a11..36fd99a5f 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -479,7 +479,7 @@ void CharServerHandler::processCharCreate(Net::MessageIn &msg)
{
BLOCK_START("CharServerHandler::processCharCreate")
Net::Character *const character = new Net::Character;
- readPlayerData(msg, character, false);
+ charServerHandler->readPlayerData(msg, character, false);
mCharacters.push_back(character);
updateCharSelectDialog();
@@ -497,7 +497,7 @@ void CharServerHandler::processCharCreate2(Net::MessageIn &msg)
{
BLOCK_START("CharServerHandler::processCharCreate2")
Net::Character *const character = new Net::Character;
- readPlayerData(msg, character, true);
+ charServerHandler->readPlayerData(msg, character, true);
mCharacters.push_back(character);
updateCharSelectDialog();
diff --git a/src/net/tmwa/charserverhandler.h b/src/net/tmwa/charserverhandler.h
index 38f8ce83b..54ce65c46 100644
--- a/src/net/tmwa/charserverhandler.h
+++ b/src/net/tmwa/charserverhandler.h
@@ -82,14 +82,14 @@ class CharServerHandler final : public MessageHandler,
void changeSlot(const int oldSlot, const int newSlot) override final;
- protected:
void readPlayerData(Net::MessageIn &msg,
Net::Character *const character,
const bool withColors) const override final;
- void processCharCreate(Net::MessageIn &msg);
+ protected:
+ static void processCharCreate(Net::MessageIn &msg);
- void processCharCreate2(Net::MessageIn &msg);
+ static void processCharCreate2(Net::MessageIn &msg);
};
} // namespace TmwAthena