mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-07-12 17:54:04 +00:00
fix never incrementing i in lua result print
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user