Minor clean

Fix xmldoc, revert ??= because whatever nullable logic plugin I have isn't detecting this right
This commit is contained in:
Kurt
2020-07-26 08:54:52 -07:00
parent 3a02bf457f
commit 7bd36ca0c8
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ public static class HiddenPowerApplicator
/// Sets the <see cref="PKM.IVs"/> to match a provided <see cref="hiddenPowerType"/>.
/// </summary>
/// <param name="pk">Pokémon to modify.</param>
/// <param name="hptype">Desired Hidden Power typing.</param>
/// <param name="hiddenPowerType">Desired Hidden Power typing.</param>
public static void SetHiddenPower(this PKM pk, int hiddenPowerType)
{
var IVs = pk.IVs;

View File

@@ -294,7 +294,8 @@ private static CheckMoveResult[] ParseMoves(PKM pkm, MoveParseSource source, Leg
for (int m = 0; m < 4; m++)
{
res[m] ??= new CheckMoveResult(Unknown, info.Generation, Invalid, LMoveSourceInvalid, Move);
if (res[m] == null)
res[m] = new CheckMoveResult(Unknown, info.Generation, Invalid, LMoveSourceInvalid, Move);
}
return res;
}