fix Block.rt and ItemDef.rt initialization

This commit is contained in:
MihailRis 2024-07-06 01:34:52 +03:00
parent e6d4688f03
commit 0f26bbadfd
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);