diff options
| author | 2008-05-05 03:40:03 +0000 | |
|---|---|---|
| committer | 2008-05-05 03:40:03 +0000 | |
| commit | f9ef4ebc9dc4fd46cdafcc76df644b4896251dac (patch) | |
| tree | 69072581bc1249d279dd62f2f2625f29c01b3294 /src/modules/m_spanningtree/fmode.cpp | |
| parent | Conversion complete, distclean compiles cleanly again. (If everything works i... (diff) | |
fix some unitialised vectors and tidy up a bit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9637 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/fmode.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/fmode.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/fmode.cpp b/src/modules/m_spanningtree/fmode.cpp index e7209a852..2ab370170 100644 --- a/src/modules/m_spanningtree/fmode.cpp +++ b/src/modules/m_spanningtree/fmode.cpp @@ -50,7 +50,6 @@ bool TreeSocket::ForceMode(const std::string &source, std::deque<std::string> &p } std::vector<std::string> modelist; time_t TS = 0; - int n = 0; for (unsigned int q = 0; (q < params.size()) && (q < 64); q++) { if (q == 1) @@ -64,7 +63,7 @@ bool TreeSocket::ForceMode(const std::string &source, std::deque<std::string> &p else { /* Everything else is fine to append to the modelist */ - modelist[n++] = params[q]; + modelist.push_back(params[q]); } } |
