Fix for compilation issue when using NO_ASSERT.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-22 12:54:11 +02:00
parent 331767789c
commit ddbf4c23b8
3 changed files with 4 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#include "LearnedAttack.hpp"
#include <Arbutils/Assert.hpp>
CreatureLib::Battling::LearnedAttack::LearnedAttack(CreatureLib::Library::AttackData* attack, uint8_t maxUses,
CreatureLib::Battling::LearnedAttack::LearnedAttack(const CreatureLib::Library::AttackData* attack, uint8_t maxUses,
AttackLearnMethod learnMethod)
: _attack(attack), _maxUses(maxUses), _remainingUses(maxUses), _learnMethod(learnMethod) {
AssertNotNull(_attack)