Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 16, 2024
1 parent 09dedec commit 0391d76
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/items/containers/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@ uint32_t Container::getContainerHoldingCount() {
}

uint32_t Container::getContainerHoldingCountRecursive() {
uint32_t counter = 0;
for (const auto& item : itemlist) {
if (auto subContainer = item->getContainer()) {
++counter;
counter += subContainer->getContainerHoldingCountRecursive();
}
}
return counter;
uint32_t counter = 0;
for (const auto &item : itemlist) {
if (auto subContainer = item->getContainer()) {
++counter;
counter += subContainer->getContainerHoldingCountRecursive();
}
}
return counter;
}

bool Container::isHoldingItem(std::shared_ptr<Item> item) {
Expand Down

0 comments on commit 0391d76

Please sign in to comment.