Fix for GCC.

This commit is contained in:
2021-11-27 10:58:48 +01:00
parent 507cf30097
commit a393c3da21

View File

@@ -13,7 +13,7 @@ namespace PkmnLibAI {
auto c = battle->GetCreature(target).GetValue();
auto highestScore = -1;
PkmnLib::Battling::LearnedMove* bestMove;
PkmnLib::Battling::LearnedMove* bestMove = nullptr;
for (auto move : user->GetMoves()) {
if (!move.HasValue()) {
continue;