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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
90 changed files with 259 additions and 274 deletions

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

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 {};