Make CreatureParty use smart pointers.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-31 19:04:40 +02:00
parent 01f6e59cb6
commit 69f6a89c0d
3 changed files with 8 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ namespace CreatureLib::Battling {
}
inline bool HasCreaturesNotInField() const {
auto p = _party->GetParty();
auto& p = _party->GetParty();
for (const auto& creature : p) {
if (creature == nullptr)
continue;