mirror of
https://github.com/pret/pokeemerald.git
synced 2024-11-26 23:01:03 +00:00
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:
parent
9a24c031bb
commit
9ad0018c17
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user