mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-12 03:24:16 +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 << ", ";
|
||||||
}
|
}
|
||||||
os << val;
|
os << val;
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
} else if constexpr (std::is_same_v<T, TDetachedLuaValue::Object>) {
|
} else if constexpr (std::is_same_v<T, TDetachedLuaValue::Object>) {
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
@@ -393,6 +394,7 @@ std::ostream& operator<<(std::ostream& os, const TDetachedLuaValue& value) {
|
|||||||
os << ", ";
|
os << ", ";
|
||||||
}
|
}
|
||||||
os << key << "=" << val;
|
os << key << "=" << val;
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
} else if constexpr (std::is_same_v<T, bool>)
|
} else if constexpr (std::is_same_v<T, bool>)
|
||||||
os << (arg ? "true" : "false");
|
os << (arg ? "true" : "false");
|
||||||
|
|||||||
Reference in New Issue
Block a user