Permalink
Browse files

Clarify the last commit a bit using a comment.

  • Loading branch information...
1 parent 0b57b7d commit 2ffcbed5bba918c374b560b4e472120de204600e Alexey Sokolov committed Nov 12, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/User.cpp
View
@@ -643,6 +643,8 @@ bool CUser::Clone(const CUser& User, CString& sErrorRet, bool bCloneChans) {
while (vClients.begin() != vClients.end()) {
CClient *pClient = vClients.front();
+ // This line will remove pClient from vClients,
+ // because it's a reference to the internal Network's vector.
pClient->SetNetwork(NULL);
}

0 comments on commit 2ffcbed

Please sign in to comment.