diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-10-03 16:38:05 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-10-03 16:38:05 +0100 |
| commit | 85eea70be41f6ea7f5358aa17e8e004537407e3f (patch) | |
| tree | c35477be141946bd13b6c28daee86c5ce40aa9f6 /src/config/ConfigManager.hpp | |
| parent | 174b59343817f18df73afa74f9b73c29cadbdeab (diff) | |
fix commas in free binds
Diffstat (limited to 'src/config/ConfigManager.hpp')
| -rw-r--r-- | src/config/ConfigManager.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index 8a167e61..8340ef06 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -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); |
