1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

Fix constant raining

This commit is contained in:
Capostrophic 2018-12-31 14:47:00 +03:00
parent 363274ccdf
commit ee2560edc3

View file

@ -63,7 +63,8 @@ namespace Fallback
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