diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-05 23:18:50 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-05 23:19:21 +0200 |
commit | 96e56ba80110b54af0ee8ebb3410bd4d9d21cdfe (patch) | |
tree | 049c627092239266e3c8443375b5116cc06a207d /src/net/tmwserv | |
parent | c5afd22e3d7066837e8dd812d60cf8ce5ca0f2b2 (diff) | |
download | mana-client-96e56ba80110b54af0ee8ebb3410bd4d9d21cdfe.tar.gz mana-client-96e56ba80110b54af0ee8ebb3410bd4d9d21cdfe.tar.bz2 mana-client-96e56ba80110b54af0ee8ebb3410bd4d9d21cdfe.tar.xz mana-client-96e56ba80110b54af0ee8ebb3410bd4d9d21cdfe.zip |
Fixed compile warnings
Initialization order, return values, unused variables, missing
enumerator.
Diffstat (limited to 'src/net/tmwserv')
-rw-r--r-- | src/net/tmwserv/npchandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwserv/npchandler.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwserv/npchandler.cpp b/src/net/tmwserv/npchandler.cpp index bae5228c..4acd2eee 100644 --- a/src/net/tmwserv/npchandler.cpp +++ b/src/net/tmwserv/npchandler.cpp @@ -32,7 +32,7 @@ #include "gui/npcpostdialog.h" #include "gui/npc_text.h" -NPCHandler::NPCHandler() +NpcHandler::NpcHandler() { static const Uint16 _messages[] = { GPMSG_NPC_CHOICE, @@ -44,7 +44,7 @@ NPCHandler::NPCHandler() handledMessages = _messages; } -void NPCHandler::handleMessage(MessageIn &msg) +void NpcHandler::handleMessage(MessageIn &msg) { Being *being = beingManager->findBeing(msg.readInt16()); if (!being || being->getType() != Being::NPC) diff --git a/src/net/tmwserv/npchandler.h b/src/net/tmwserv/npchandler.h index 905c9b01..c8ad738b 100644 --- a/src/net/tmwserv/npchandler.h +++ b/src/net/tmwserv/npchandler.h @@ -24,10 +24,10 @@ #include "net/messagehandler.h" -class NPCHandler : public MessageHandler +class NpcHandler : public MessageHandler { public: - NPCHandler(); + NpcHandler(); void handleMessage(MessageIn &msg); }; |