diff --git a/components/fallback/fallback.cpp b/components/fallback/fallback.cpp index 9b058f104..010e1025c 100644 --- a/components/fallback/fallback.cpp +++ b/components/fallback/fallback.cpp @@ -1,5 +1,8 @@ #include "fallback.hpp" +#include + + namespace Fallback { bool stob(std::string const& s) { @@ -23,8 +26,9 @@ namespace Fallback std::string fallback=getFallbackString(fall); if(fallback.empty()) return 0; - else - return std::stof(fallback); + else { + return boost::lexical_cast(fallback); + } } int Map::getFallbackInt(const std::string& fall) const {