Cambiados los accesos a vector de .at a []

This commit is contained in:
2022-12-07 09:29:06 +01:00
parent 7adb049b37
commit c87e1e68a9
8 changed files with 208 additions and 208 deletions

View File

@@ -456,8 +456,8 @@ bool Director::saveConfigFile()
file << "\n## OTHER OPTIONS\n";
file << "language=" + std::to_string(options->language) + "\n";
file << "difficulty=" + std::to_string(options->difficulty) + "\n";
file << "input0=" + std::to_string(options->input.at(0).deviceType) + "\n";
file << "input1=" + std::to_string(options->input.at(1).deviceType) + "\n";
file << "input0=" + std::to_string(options->input[0].deviceType) + "\n";
file << "input1=" + std::to_string(options->input[1].deviceType) + "\n";
file << "\n## ONLINE OPTIONS\n";
file << "enabled=" + boolToString(options->online.enabled) + "\n";
@@ -667,12 +667,12 @@ bool Director::setOptions(options_t *options, std::string var, std::string value
else if (var == "input0")
{
options->input.at(0).deviceType = std::stoi(value);
options->input[0].deviceType = std::stoi(value);
}
else if (var == "input1")
{
options->input.at(1).deviceType = std::stoi(value);
options->input[1].deviceType = std::stoi(value);
}
else if (var == "enabled")