From ee2560edc3b73949502ab4b4720d2e04262c52b8 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Mon, 31 Dec 2018 14:47:00 +0300 Subject: [PATCH] Fix constant raining --- components/fallback/fallback.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/fallback/fallback.cpp b/components/fallback/fallback.cpp index 473d10ba4e..9e64d5fea6 100644 --- a/components/fallback/fallback.cpp +++ b/components/fallback/fallback.cpp @@ -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