Skip to content

Commit

Permalink
fix: house water (#3378)
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo09 authored Feb 21, 2025
1 parent 6dc2536 commit 98e53d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/io/iomap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ void IOMap::parseTileArea(FileStream &stream, Map &map, const Position &pos) {
const uint16_t id = stream.getU16();
const auto &iType = Item::items[id];

if (!tile->isHouse() || (!iType.isBed() && !iType.isTrashHolder())) {

if (!tile->isHouse() || !iType.isBed()) {
const auto item = std::make_shared<BasicItem>();
item->id = id;

Expand All @@ -186,9 +185,7 @@ void IOMap::parseTileArea(FileStream &stream, Map &map, const Position &pos) {
switch (type) {
case OTBM_ITEM: {
const uint16_t id = stream.getU16();

const auto &iType = Item::items[id];

const auto item = std::make_shared<BasicItem>();
item->id = id;

Expand Down

0 comments on commit 98e53d4

Please # to comment.