From 32d9fdb818fc427edb6354624f596efc5e6f8b7f Mon Sep 17 00:00:00 2001 From: Mordred Date: Thu, 26 Jan 2023 15:33:53 +0100 Subject: [PATCH] WiP fixed code redundancy --- src/world/Manager/HousingMgr.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/world/Manager/HousingMgr.cpp b/src/world/Manager/HousingMgr.cpp index 42e148df..a8607778 100644 --- a/src/world/Manager/HousingMgr.cpp +++ b/src/world/Manager/HousingMgr.cpp @@ -1730,9 +1730,6 @@ void HousingMgr::removeHouse( Entity::Player& player, uint16_t plot ) if( !land || !land->getHouse() ) return; - if( !hasPermission( player, *land, 0 ) ) - return; - auto& interiorContainer = getEstateInventory( land->getLandIdent() )[ Common::InventoryType::HousingInteriorAppearance ]; auto& invMgr = Common::Service< InventoryMgr >::ref();