summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 266556dac..6f1236f60 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -405,6 +405,7 @@ long Server::GetChannelCount()
chanrec* Server::GetChannelIndex(long index)
{
+ int target = 0;
for (chan_hash::iterator n = chanlist.begin(); n != chanlist.end(); n++, target++)
{
if (index == target)