From c78423448941517eeae0a60e703a5dc2976aed0c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 May 2014 00:28:46 +0300 Subject: fix compilation without C++11 options. --- src/net/tmwa/partyhandler.cpp | 4 ++-- src/net/tmwa/partyhandler.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp index 634ecbff5..ca11ccdf0 100644 --- a/src/net/tmwa/partyhandler.cpp +++ b/src/net/tmwa/partyhandler.cpp @@ -185,7 +185,7 @@ void PartyHandler::chat(const std::string &text) const outMsg.writeString(text, static_cast(text.length())); } -void PartyHandler::setShareExperience(const Net::PartyShare share) const +void PartyHandler::setShareExperience(const Net::PartyShare::Type share) const { if (share == Net::PartyShare::NOT_POSSIBLE) return; @@ -195,7 +195,7 @@ void PartyHandler::setShareExperience(const Net::PartyShare share) const outMsg.writeInt16(static_cast(mShareItems)); } -void PartyHandler::setShareItems(const Net::PartyShare share) const +void PartyHandler::setShareItems(const Net::PartyShare::Type share) const { if (share == Net::PartyShare::NOT_POSSIBLE) return; diff --git a/src/net/tmwa/partyhandler.h b/src/net/tmwa/partyhandler.h index ae4249143..41e42097e 100644 --- a/src/net/tmwa/partyhandler.h +++ b/src/net/tmwa/partyhandler.h @@ -59,10 +59,11 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler void chat(const std::string &text) const override final; - void setShareExperience(const Net::PartyShare share) + void setShareExperience(const Net::PartyShare::Type share) const override final; - void setShareItems(const Net::PartyShare share) const override final; + void setShareItems(const Net::PartyShare::Type + share) const override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2