Skip to content

Commit

Permalink
Fix typo: | should be || in Task_TryFieldPoisonWhiteOut
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AreaZR committed Oct 10, 2024
1 parent 9a24c03 commit 9ad0018
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/field_poison.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ad0018

Please sign in to comment.