1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 02:15:32 +00:00

Merge pull request #2111 from Capostrophic/fallback

[Regression] Fix constant raining
This commit is contained in:
David Cernat 2019-01-01 12:28:31 +02:00 committed by GitHub
commit 150ac71d97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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