From 0f26bbadfd5f053e127c68cb23809b76a6472015 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 6 Jul 2024 01:34:52 +0300 Subject: [PATCH] fix Block.rt and ItemDef.rt initialization --- src/items/ItemDef.hpp | 2 +- src/voxels/Block.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);