Use std::atoi instead of std::stoi
Some Android cross cross-compilers don't have std::stoi. E.g. i686-linux-android-g++ from Android NDK r10e don't have std::stoi.
This commit is contained in:
parent
e19e68d431
commit
e301f67828
@ -263,7 +263,7 @@ void DecodeResourceLimits(TBuiltInResource* resources, char* config)
|
||||
return;
|
||||
}
|
||||
|
||||
const int value = std::stoi(valueStr);
|
||||
const int value = std::atoi(valueStr.c_str());
|
||||
|
||||
if (tokenStr == "MaxLights")
|
||||
resources->maxLights = value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user