Fix typo: | should be || in Task_TryFieldPoisonWhiteOut

Yes, this is honestly overkill, as it doesn't actually fix any behavioral bugs, but I was suggested to do this. This was a typo made in the source that GameFreak made, and the compiler warns against this. I opened a PR in pokeemerald expansion and was suggested to open one here.
This commit is contained in:
Rose 2024-10-10 10:27:33 -04:00
parent 9a24c031bb
commit 9ad0018c17

View File

@ -89,7 +89,11 @@ static void Task_TryFieldPoisonWhiteOut(u8 taskId)
if (AllMonsFainted())
{
// Battle facilities have their own white out script to handle the challenge loss
#ifdef BUGFIX
if (InBattlePyramid() || InBattlePike() || InTrainerHillChallenge())
#else
if (InBattlePyramid() | InBattlePike() || InTrainerHillChallenge())
#endif
gSpecialVar_Result = FLDPSN_FRONTIER_WHITEOUT;
else
gSpecialVar_Result = FLDPSN_WHITEOUT;