X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..bec5d17c77e9cfc8482ffca062b8f500859bfe34:/stargazer/admins_impl.cpp diff --git a/stargazer/admins_impl.cpp b/stargazer/admins_impl.cpp index 8f2760ce..9708f986 100644 --- a/stargazer/admins_impl.cpp +++ b/stargazer/admins_impl.cpp @@ -123,7 +123,7 @@ while (si != searchDescriptors.end()) ++si; } -data.remove(*ai); +data.erase(ai); if (store->DelAdmin(login) < 0) { strError = "Administrator \'" + login + "\' was not deleted. Error: " + store->GetStrError();