summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-26 20:08:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-26 20:08:06 +0300
commitd60eec2c2cd453ecbaee7883a272479792875465 (patch)
treee69ce19116c4d7eb043c33bc577866959bc87b43 /src/net/eathena
parent5560a44ff5beea4fc2b88a589a3f915b9d0555d2 (diff)
downloadplus-d60eec2c2cd453ecbaee7883a272479792875465.tar.gz
plus-d60eec2c2cd453ecbaee7883a272479792875465.tar.bz2
plus-d60eec2c2cd453ecbaee7883a272479792875465.tar.xz
plus-d60eec2c2cd453ecbaee7883a272479792875465.zip
fix code style more.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/playerhandler.cpp2
-rw-r--r--src/net/eathena/playerhandler.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 4897e6b70..00234bd7c 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -184,7 +184,7 @@ void PlayerHandler::setDestination(const int x, const int y,
static_cast<unsigned char>(direction));
}
-void PlayerHandler::changeAction(const Being::Action action) const
+void PlayerHandler::changeAction(const Being::Action &action) const
{
unsigned char type;
switch (action)
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index 4ea630a60..4e82d7067 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -53,7 +53,7 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
void setDirection(const unsigned char direction) const override;
void setDestination(const int x, const int y,
const int direction) const override;
- void changeAction(const Being::Action action) const override;
+ void changeAction(const Being::Action &action) const override;
void updateStatus(const uint8_t status) const override;
void processPlayerShortcuts(Net::MessageIn &msg) const;