From bf6f77d904d62f227d00e84f6655ec78b2f14b2c Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 21 Apr 2020 12:43:08 +0200 Subject: [PATCH] Pass Random of GetRandomAttack by reference. --- src/Library/CreatureData/LearnableAttacks.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Library/CreatureData/LearnableAttacks.hpp b/src/Library/CreatureData/LearnableAttacks.hpp index ae291af..fb85add 100644 --- a/src/Library/CreatureData/LearnableAttacks.hpp +++ b/src/Library/CreatureData/LearnableAttacks.hpp @@ -33,7 +33,7 @@ namespace CreatureLib::Library { const List& 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; }