Pass Random of GetRandomAttack by reference.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
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;
|
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()) {
|
if (_distinctAttacks.empty()) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue