From 09c9081bf97e229d1e8f2dee227b5d2e463e9171 Mon Sep 17 00:00:00 2001 From: JustinAJ Date: Wed, 28 May 2014 22:59:27 -0400 Subject: [PATCH] Fixed an index/safety check. --- Jupiter/IRC_Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jupiter/IRC_Client.cpp b/Jupiter/IRC_Client.cpp index b3a8435..e234053 100644 --- a/Jupiter/IRC_Client.cpp +++ b/Jupiter/IRC_Client.cpp @@ -429,7 +429,7 @@ Jupiter::IRC::Client::Channel *Jupiter::IRC::Client::getChannel(unsigned int ind Jupiter::IRC::Client::Channel *Jupiter::IRC::Client::getChannel(const char *chanName) const { - unsigned int index = Jupiter::IRC::Client::getChannelIndex(chanName); + int index = Jupiter::IRC::Client::getChannelIndex(chanName); if (index < 0) return nullptr; return Jupiter::IRC::Client::getChannel(index); }