Fix constant raining

pull/2111/head
Capostrophic 6 years ago
parent 363274ccdf
commit ee2560edc3

@ -63,7 +63,8 @@ namespace Fallback
bool Map::getFallbackBool(const std::string& fall) const bool Map::getFallbackBool(const std::string& fall) const
{ {
return getFallbackString(fall) != "0"; std::string fallback = getFallbackString(fall);
return !fallback.empty() && fallback != "0";
} }
osg::Vec4f Map::getFallbackColour(const std::string& fall) const osg::Vec4f Map::getFallbackColour(const std::string& fall) const

Loading…
Cancel
Save