]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/rscript/rscript.cpp
Fix SearchNext condition.
[stg.git] / projects / stargazer / plugins / other / rscript / rscript.cpp
index 24a8bd714cb6c7997acf9889b25d243c2e0a7b18..59bde073b3b868ee3721254691f18355ece6f0c1 100644 (file)
@@ -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);