aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2020-01-23 20:14:46 +0100
committerSmallJoker <mk939@ymail.com>2020-01-23 20:14:46 +0100
commita1da9caecf5070e72b554b6c1d4272f9ac19dc55 (patch)
treed28e76ab5273ccabe7b4f86300a418f8f222cf15
parent1892ff3c0db23ccdf7b0f6dc83cb1bdf4579b4ec (diff)
downloadminetest-a1da9caecf5070e72b554b6c1d4272f9ac19dc55.tar.gz
minetest-a1da9caecf5070e72b554b6c1d4272f9ac19dc55.tar.bz2
minetest-a1da9caecf5070e72b554b6c1d4272f9ac19dc55.zip
EnrichedString: Fix uninitialized variable m_default_length
-rw-r--r--src/util/enriched_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/enriched_string.h b/src/util/enriched_string.h
index eaab3bd91..c8a095887 100644
--- a/src/util/enriched_string.h
+++ b/src/util/enriched_string.h
@@ -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;
};