fix never incrementing i in lua result print

This commit is contained in:
Lion Kortlepel
2026-04-19 20:35:15 +00:00
parent 06bd719dbf
commit 7c6acfdc86
+2
View File
@@ -385,6 +385,7 @@ std::ostream& operator<<(std::ostream& os, const TDetachedLuaValue& value) {
os << ", ";
}
os << val;
++i;
}
} else if constexpr (std::is_same_v<T, TDetachedLuaValue::Object>) {
size_t i = 0;
@@ -393,6 +394,7 @@ std::ostream& operator<<(std::ostream& os, const TDetachedLuaValue& value) {
os << ", ";
}
os << key << "=" << val;
++i;
}
} else if constexpr (std::is_same_v<T, bool>)
os << (arg ? "true" : "false");