Fix for GCC.

This commit is contained in:
Deukhoofd 2021-11-27 10:58:48 +01:00
parent 507cf30097
commit a393c3da21
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

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;