]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.cpp
Rescale UCI scores to PawnValueEg
[stockfish] / src / ucioption.cpp
index dbab6fc106c833652069b5185b73339f2862db63..e117e44c862205e37f7901a0e0cc59e3a97b4bf7 100644 (file)
@@ -139,13 +139,12 @@ Option::operator std::string() const {
 
 /// operator<<() inits options and assigns idx in the correct printing order
 
-Option& Option::operator<<(const Option& o) {
+void Option::operator<<(const Option& o) {
 
-  static size_t index = 0;
+  static size_t insert_order = 0;
 
   *this = o;
-  idx = index++;
-  return *this;
+  idx = insert_order++;
 }