Pass Random of GetRandomAttack by reference.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-04-21 12:43:08 +02:00
parent eff755a901
commit bf6f77d904
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }