mirror of
https://github.com/edubart/otclient.git
synced 2025-12-22 08:17:11 +01:00
don't set bits twice
This commit is contained in:
@@ -179,8 +179,8 @@ void Map::loadOtbm(const std::string& fileName)
|
||||
}
|
||||
|
||||
if(const TilePtr& tile = getTile(pos)) {
|
||||
if(house)
|
||||
tile->setHouseId(house->getId());
|
||||
if(tile->hasFlag(TILESTATE_HOUSE))
|
||||
tile->setFlags(tile->getFlags() & ~TILESTATE_HOUSE);
|
||||
tile->setFlags((tileflags_t)flags);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user