diff --git a/src/items/ItemDef.hpp b/src/items/ItemDef.hpp index 015cfb21..12100fb3 100644 --- a/src/items/ItemDef.hpp +++ b/src/items/ItemDef.hpp @@ -41,7 +41,7 @@ struct ItemDef { item_funcs_set funcsset {}; blockid_t placingBlock; bool emissive = false; - } rt; + } rt {}; ItemDef(const std::string& name); ItemDef(const ItemDef&) = delete; diff --git a/src/voxels/Block.hpp b/src/voxels/Block.hpp index 90ae2f6a..23ecdc26 100644 --- a/src/voxels/Block.hpp +++ b/src/voxels/Block.hpp @@ -195,7 +195,7 @@ public: /// @brief picking item integer id itemid_t pickingItem = 0; - } rt; + } rt {}; Block(const std::string& name); Block(std::string name, const std::string& texture);