diff options
author | David Athay <ko2fan@gmail.com> | 2008-05-08 17:07:49 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-05-08 17:07:49 +0000 |
commit | 96c635e12b1834493abfbe4685cfc1d6a3eaddc4 (patch) | |
tree | 13f2076417fb5d06c68b487be30ec6c5fb129095 /src/net/chathandler.cpp | |
parent | 8a41d66561860abbcce1bbefbcebdb67b5429d73 (diff) | |
download | mana-96c635e12b1834493abfbe4685cfc1d6a3eaddc4.tar.gz mana-96c635e12b1834493abfbe4685cfc1d6a3eaddc4.tar.bz2 mana-96c635e12b1834493abfbe4685cfc1d6a3eaddc4.tar.xz mana-96c635e12b1834493abfbe4685cfc1d6a3eaddc4.zip |
Fixed initialisation in case
Diffstat (limited to 'src/net/chathandler.cpp')
-rw-r--r-- | src/net/chathandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/chathandler.cpp b/src/net/chathandler.cpp index e1d68f22..dac6bb86 100644 --- a/src/net/chathandler.cpp +++ b/src/net/chathandler.cpp @@ -68,6 +68,7 @@ void ChatHandler::handleMessage(MessageIn &msg) Being *being; std::string chatMsg; short channelId; + short id; std::string userNick; std::string channelName; short error = -1; @@ -75,7 +76,7 @@ void ChatHandler::handleMessage(MessageIn &msg) switch (msg.getId()) { case GPMSG_SAY: - int id = msg.readInt16(); + id = msg.readInt16(); chatMsg = msg.readString(); if (id == 0) { |