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:
@@ -89,7 +89,11 @@ static void Task_TryFieldPoisonWhiteOut(u8 taskId)
|
|||||||
if (AllMonsFainted())
|
if (AllMonsFainted())
|
||||||
{
|
{
|
||||||
// Battle facilities have their own white out script to handle the challenge loss
|
// Battle facilities have their own white out script to handle the challenge loss
|
||||||
|
#ifdef BUGFIX
|
||||||
|
if (InBattlePyramid() || InBattlePike() || InTrainerHillChallenge())
|
||||||
|
#else
|
||||||
if (InBattlePyramid() | InBattlePike() || InTrainerHillChallenge())
|
if (InBattlePyramid() | InBattlePike() || InTrainerHillChallenge())
|
||||||
|
#endif
|
||||||
gSpecialVar_Result = FLDPSN_FRONTIER_WHITEOUT;
|
gSpecialVar_Result = FLDPSN_FRONTIER_WHITEOUT;
|
||||||
else
|
else
|
||||||
gSpecialVar_Result = FLDPSN_WHITEOUT;
|
gSpecialVar_Result = FLDPSN_WHITEOUT;
|
||||||
|
|||||||
Reference in New Issue
Block a user