Make CreatureParty use smart pointers.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user