summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 41e266a5..8bb6acbb 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -35,11 +35,6 @@
#include "npc.h"
#include "player_relations.h"
-#ifdef EATHENA_SUPPORT
-#include "net/messageout.h"
-#include "net/ea/protocol.h"
-#endif
-
#include "resources/itemdb.h"
#include "resources/iteminfo.h"
@@ -292,8 +287,7 @@ void PopupMenu::handleLink(const std::string &link)
being &&
being->getType() == Being::PLAYER)
{
- MessageOut outMsg(CMSG_PARTY_INVITE);
- outMsg.writeInt32(being->getId());
+ player_node->inviteToParty(dynamic_cast<Player*> (being));
}
#endif