Cambiados los accesos a vector de .at a []
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user