From a393c3da21ce711ee6bba52b292ab4edd6354c34 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 27 Nov 2021 10:58:48 +0100 Subject: [PATCH] Fix for GCC. --- src/NaiveAI.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;