Fix for GCC.

This commit is contained in:
Deukhoofd committed 2021-11-27 10:58:48 +01:00
1 parent 507cf30097
commit a393c3da21
1 file changed
+1 -1
+1 -1
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;