X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f47613c7f556160a73003a09797750c58cc3fc74..daa6cb18a0ff8451a9599905a01d66d6515fdb86:/projects/stargazer/plugins/other/smux/tables.cpp diff --git a/projects/stargazer/plugins/other/smux/tables.cpp b/projects/stargazer/plugins/other/smux/tables.cpp index 962c91a8..25b2dd85 100644 --- a/projects/stargazer/plugins/other/smux/tables.cpp +++ b/projects/stargazer/plugins/other/smux/tables.cpp @@ -28,9 +28,10 @@ assert(handle && "USERS::OpenSearch is always correct"); USER_PTR user; while (!users.SearchNext(handle, &user)) { + if (user->GetDeleted()) + continue; std::string tariffName(user->GetProperty().tariffName.ConstData()); - std::map<std::string, size_t>::iterator it; - it = data.lower_bound(tariffName); + std::map<std::string, size_t>::iterator it(data.lower_bound(tariffName)); if (it == data.end() || it->first != tariffName) {