fix commas in free binds
This commit is contained in:
parent
174b593438
commit
85eea70be4
2 changed files with 3 additions and 3 deletions
|
|
@ -72,12 +72,12 @@ struct SAnimationPropertyConfig {
|
|||
|
||||
class CVarList {
|
||||
public:
|
||||
CVarList(const std::string& in) {
|
||||
CVarList(const std::string& in, long unsigned int lastArgNo = 0) {
|
||||
std::string curitem = "";
|
||||
std::string argZ = in;
|
||||
|
||||
auto nextItem = [&]() {
|
||||
auto idx = argZ.find_first_of(',');
|
||||
auto idx = lastArgNo != 0 && m_vArgs.size() >= lastArgNo - 1 ? std::string::npos : argZ.find_first_of(',');
|
||||
|
||||
if (idx != std::string::npos) {
|
||||
curitem = argZ.substr(0, idx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue