aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-12 04:50:09 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-12 04:50:09 +0200
commite705c74a8d9e3fdf6ed181b8793ad7c8c7afb75f (patch)
tree5a16b464e45624a52f22ff669616f4b7d3051126 /include
parenta462f8bcea50c7ad9f33eefc62c03f9ed6fd890b (diff)
Fix uninitialized variable read resulting in item highlight being messed sometimes
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index 8ce05fc..7d19cf5 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -371,7 +371,7 @@ namespace QuickMedia {
sf::Vector2f item_background_target_pos;
sf::Vector2f item_background_prev_size;
sf::Vector2f item_background_target_size;
- float item_background_target_height;
+ float item_background_target_height = 0.0f;
TargetSetState target_set = TargetSetState::NOT_SET;
// TODO: Instead of using this, add functions for modifying |items| and apply the filter on those new items
DirtyState items_dirty = DirtyState::FALSE;