Move delete networks out of looping over the clients in CUser::Clone

This was moved in the previous commit when I tried to merge it to the
commit below.
This commit is contained in:
Kyle Fuller
2011-11-13 03:30:30 +00:00
parent 01b15bfb5b
commit 3945d435d9

View File

@@ -647,8 +647,9 @@ bool CUser::Clone(const CUser& User, CString& sErrorRet, bool bCloneNetworks) {
// This line will remove pClient from vClients,
// because it's a reference to the internal Network's vector.
pClient->SetNetwork(NULL);
DeleteNetwork(*it);
}
DeleteNetwork(*it);
}
}
// !Networks