mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 19:17:45 +00:00
bug fix
This commit is contained in:
parent
05b7ca341e
commit
0c20b64af3
3 changed files with 9 additions and 0 deletions
|
@ -907,6 +907,8 @@ void Sapphire::World::Manager::HousingMgr::updateHouseModels( Sapphire::HousePtr
|
||||||
{
|
{
|
||||||
assert( house );
|
assert( house );
|
||||||
|
|
||||||
|
house->clearModelCache();
|
||||||
|
|
||||||
auto& containers = getEstateInventory( house->getLandIdent() );
|
auto& containers = getEstateInventory( house->getLandIdent() );
|
||||||
|
|
||||||
auto extContainer = containers.find( static_cast< uint16_t >( InventoryType::HousingExteriorAppearance ) );
|
auto extContainer = containers.find( static_cast< uint16_t >( InventoryType::HousingExteriorAppearance ) );
|
||||||
|
|
|
@ -64,6 +64,11 @@ Sapphire::House::ExteriorModelsArray const& Sapphire::House::getHouseModels() co
|
||||||
return m_exteriorModelCache;
|
return m_exteriorModelCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Sapphire::House::clearModelCache()
|
||||||
|
{
|
||||||
|
m_exteriorModelCache.fill( std::make_pair( 0, 0 ) );
|
||||||
|
}
|
||||||
|
|
||||||
const std::string& Sapphire::House::getHouseName() const
|
const std::string& Sapphire::House::getHouseName() const
|
||||||
{
|
{
|
||||||
return m_estateName;
|
return m_estateName;
|
||||||
|
|
|
@ -41,6 +41,8 @@ namespace Sapphire
|
||||||
|
|
||||||
ExteriorModelsArray const& getHouseModels() const;
|
ExteriorModelsArray const& getHouseModels() const;
|
||||||
|
|
||||||
|
void clearModelCache();
|
||||||
|
|
||||||
void updateHouseDb();
|
void updateHouseDb();
|
||||||
|
|
||||||
void setHasAetheryte( bool hasAetheryte );
|
void setHasAetheryte( bool hasAetheryte );
|
||||||
|
|
Loading…
Add table
Reference in a new issue