Pass Random of GetRandomAttack by reference.
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::Library {
|
||||
|
||||
const List<const AttackData*>& GetAttacksForLevel(uint8_t level) const;
|
||||
|
||||
virtual const AttackData* GetRandomAttack(Arbutils::Random rand = Arbutils::Random()) const {
|
||||
virtual const AttackData* GetRandomAttack(Arbutils::Random& rand) const {
|
||||
if (_distinctAttacks.empty()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user