Revert "fix: optimization: Various PVS-Studio warnings"

This commit is contained in:
MihailRis
2024-08-02 14:51:44 +03:00
committed by GitHub
parent a7ef7bb365
commit ba046a52c0
90 changed files with 259 additions and 274 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
Inventories::Inventories(Level& level) : level(level) {
}
Inventories::~Inventories() = default;
Inventories::~Inventories() {
}
std::shared_ptr<Inventory> Inventories::create(size_t size) {
int64_t id = level.getWorld()->getNextInventoryId();
+1 -1
View File
@@ -38,8 +38,8 @@ struct ItemDef {
struct {
itemid_t id;
blockid_t placingBlock;
item_funcs_set funcsset {};
blockid_t placingBlock;
bool emissive = false;
} rt {};