diff --git a/src/NaiveAI.hpp b/src/NaiveAI.hpp index f099f65..dc6da2b 100644 --- a/src/NaiveAI.hpp +++ b/src/NaiveAI.hpp @@ -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;