From: Maksym Mamontov Date: Tue, 31 Mar 2026 18:32:09 +0000 (+0300) Subject: Fix SearchNext condition. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/HEAD?hp=-c Fix SearchNext condition. --- 4ea3ac5744511ce917c191a73084317cba628aa4 diff --git a/projects/stargazer/plugins/other/rscript/rscript.cpp b/projects/stargazer/plugins/other/rscript/rscript.cpp index 24a8bd71..59bde073 100644 --- a/projects/stargazer/plugins/other/rscript/rscript.cpp +++ b/projects/stargazer/plugins/other/rscript/rscript.cpp @@ -438,7 +438,7 @@ UserPtr u; int h = users->OpenSearch(); assert(h && "USERS::OpenSearch is always correct"); -while (users->SearchNext(h, &u) != 0) +while (users->SearchNext(h, &u) == 0) SetUserNotifiers(u); users->CloseSearch(h);