1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

- updated link to repo in readme

- image loader will report last SDL error if loading failed
- fixed parsing of floats from H3 txt's
This commit is contained in:
Ivan Savenko
2013-06-09 10:09:28 +00:00
parent cdefb12d4c
commit 870399c7be
3 changed files with 4 additions and 3 deletions

View File

@ -116,7 +116,7 @@ float CLegacyConfigParser::readNumber()
if (input.find(',') != std::string::npos) // code to handle conversion with comma as decimal separator
stream.imbue(std::locale(std::locale(), new LocaleWithComma));
int result;
float result;
if ( !(stream >> result) )
return 0;
return result;