From 96c635e12b1834493abfbe4685cfc1d6a3eaddc4 Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 8 May 2008 17:07:49 +0000 Subject: Fixed initialisation in case --- src/net/chathandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/chathandler.cpp') 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) { -- cgit v1.2.3-70-g09d2