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:
parent
eff755a901
commit
bf6f77d904
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user