Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospess0a committed Dec 19, 2022
1 parent 2d1bb0c commit f096410
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3849,8 +3849,10 @@ void Player::postAddNotification(Thing* thing, const Cylinder* oldParent, int32_

for (const auto& it : openContainers) {
Container* container = it.second.container;
if (!Position::areInRange<1, 1, 0>(container->getPosition(), getPosition())) {
containers.push_back(container);
if(container != nullptr){
if (!Position::areInRange<1, 1, 0>(container->getPosition(), getPosition())) {
containers.push_back(container);
}
}
}

Expand Down

0 comments on commit f096410

Please sign in to comment.