Fix MoveData to use signed byte for priority constructor instead of unsigned.
This commit is contained in:
parent
4ee5a14b4c
commit
9974adb5ad
src/Library/Moves
|
@ -2,7 +2,7 @@
|
|||
#include <utility>
|
||||
PkmnLib::Library::MoveData::MoveData(const std::string& name, uint8_t type,
|
||||
PkmnLib::Library::MoveCategory category, uint8_t power, uint8_t accuracy,
|
||||
uint8_t baseUsage, CreatureLib::Library::AttackTarget target, uint8_t priority,
|
||||
uint8_t baseUsage, CreatureLib::Library::AttackTarget target, int8_t priority,
|
||||
std::unordered_set<std::string> flags)
|
||||
: AttackData(name, type, static_cast<CreatureLib::Library::AttackCategory>(category), power, accuracy, baseUsage,
|
||||
target, priority, std::move(flags)) {}
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace PkmnLib::Library {
|
|||
|
||||
public:
|
||||
MoveData(const std::string& name, uint8_t type, PkmnLib::Library::MoveCategory category, uint8_t power,
|
||||
uint8_t accuracy, uint8_t baseUsage, CreatureLib::Library::AttackTarget target, uint8_t priority,
|
||||
uint8_t accuracy, uint8_t baseUsage, CreatureLib::Library::AttackTarget target, int8_t priority,
|
||||
std::unordered_set<std::string> flags);
|
||||
|
||||
PkmnLib::Library::MoveCategory GetCategory() const;
|
||||
|
|
Loading…
Reference in New Issue