From 3ef3047681f0813d8f1d06939eaa2ef378d99505 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 3 Nov 2015 13:08:21 +0100 Subject: Add UserManager::NextAlreadySentId() and convert all code to use it --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index d503844e7..258544312 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -873,7 +873,7 @@ void User::ForEachNeighbor(ForEachNeighborHandler& handler, bool include_self) FOREACH_MOD(OnBuildNeighborList, (this, include_chans, exceptions)); // Get next id, guaranteed to differ from the already_sent field of all users - const already_sent_t newid = ++LocalUser::already_sent_id; + const already_sent_t newid = ServerInstance->Users.NextAlreadySentId(); // Handle exceptions first for (std::map::const_iterator i = exceptions.begin(); i != exceptions.end(); ++i) -- cgit v1.3.1-10-gc9f91