Remove Random passes by pointer.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-07-12 15:26:00 +02:00
parent abab1d0f9a
commit 5032377554
3 changed files with 4 additions and 8 deletions

View File

@@ -68,8 +68,8 @@ namespace CreatureLib::Library {
GetLearnableAttacks() const {
return _attacks;
}
[[nodiscard]] inline TalentIndex GetRandomTalent(ArbUt::Random* rand) const noexcept {
return TalentIndex(false, rand->Get(_talents.Count()));
[[nodiscard]] inline TalentIndex GetRandomTalent(ArbUt::Random& rand) const noexcept {
return TalentIndex(false, rand.Get(_talents.Count()));
}
[[nodiscard]] inline const ArbUt::List<ArbUt::StringView>& GetTalents() const { return _talents; }
[[nodiscard]] inline const ArbUt::List<ArbUt::StringView>& GetSecretTalents() const { return _secretTalents; }