Fix for GCC.
This commit is contained in:
parent
507cf30097
commit
a393c3da21
|
@ -13,7 +13,7 @@ namespace PkmnLibAI {
|
||||||
auto c = battle->GetCreature(target).GetValue();
|
auto c = battle->GetCreature(target).GetValue();
|
||||||
|
|
||||||
auto highestScore = -1;
|
auto highestScore = -1;
|
||||||
PkmnLib::Battling::LearnedMove* bestMove;
|
PkmnLib::Battling::LearnedMove* bestMove = nullptr;
|
||||||
for (auto move : user->GetMoves()) {
|
for (auto move : user->GetMoves()) {
|
||||||
if (!move.HasValue()) {
|
if (!move.HasValue()) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue