From 7c6acfdc860d021424c55fdb08fb3e6837e9af78 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 19 Apr 2026 20:35:15 +0000 Subject: [PATCH] fix never incrementing i in lua result print --- src/Common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Common.cpp b/src/Common.cpp index a20141f..be77275 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -385,6 +385,7 @@ std::ostream& operator<<(std::ostream& os, const TDetachedLuaValue& value) { os << ", "; } os << val; + ++i; } } else if constexpr (std::is_same_v) { 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) os << (arg ? "true" : "false");