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:
@ -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;
|
||||
|
Reference in New Issue
Block a user