Fixed getDouble returns int only

Added Rainbow Tail Factor
This commit is contained in:
Maurice Grönwoldt 2021-02-22 09:29:24 +01:00
commit 1a17f1db63
3 changed files with 4 additions and 2 deletions

View file

@ -62,7 +62,7 @@ namespace VUtils {
double Environment::getAsDouble(const std::string &name, double def) {
char *end;
auto *v = getEnv(name, "").c_str();
double val = (int) std::strtod(v, &end);
auto val = (double) std::strtod(v, &end);
if (end == v) {
setNumber(name.c_str(), def);
return def;