diff options
Diffstat (limited to 'pokemod/Ini.cpp')
| -rw-r--r-- | pokemod/Ini.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemod/Ini.cpp b/pokemod/Ini.cpp index 3a5d0c88..30a7dbfc 100644 --- a/pokemod/Ini.cpp +++ b/pokemod/Ini.cpp @@ -91,7 +91,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, int &val, const int de }
long temp;
char *end;
- temp = std::strtol(fields[field].c_str(), &end, 10);
+ temp = std::strtol(fields[field], &end, 10);
val = ((temp < INT_MIN) || (INT_MAX < temp) || *end) ? def : temp;
}
@@ -104,7 +104,7 @@ void PokeGen::PokeMod::Ini::GetValue(const String &field, unsigned &val, const u }
unsigned long temp;
char *end;
- temp = std::strtoul(fields[field].c_str(), &end, 10);
+ temp = std::strtoul(fields[field], &end, 10);
val = ((UINT_MAX < temp) || *end) ? def : temp;
}
|
