EnrichedString: Fix uninitialized variable m_default_length
authorSmallJoker <mk939@ymail.com>
Thu, 23 Jan 2020 19:14:46 +0000 (20:14 +0100)
committerSmallJoker <mk939@ymail.com>
Thu, 23 Jan 2020 19:14:46 +0000 (20:14 +0100)
src/util/enriched_string.h

index eaab3bd917326fef193b380f051cb598edbba0aa..c8a095887ae932772cb57025831bc8e1fc1123ae 100644 (file)
@@ -98,5 +98,5 @@ private:
        irr::video::SColor m_background;
        // This variable defines the length of the default-colored text.
        // Change this to a std::vector if an "end coloring" tag is wanted.
-       size_t m_default_length;
+       size_t m_default_length = 0;
 };