Fix Using a Safari Ball crashes the game #6206 (#6220)

This commit is contained in:
明雅 2025-02-09 20:50:01 +08:00 committed by GitHub
parent de9e9af1b7
commit d45a6487ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,7 @@
#include "pokemon.h"
#include "random.h"
#include "recorded_battle.h"
#include "reshow_battle_screen.h"
#include "roamer.h"
#include "safari_zone.h"
#include "scanline_effect.h"
@ -3719,6 +3720,10 @@ static void DoBattleIntro(void)
PrepareStringBattle(STRINGID_INTROSENDOUT, battler);
}
else
{
CreateBattlerSprite(GetBattlerAtPosition(B_POSITION_PLAYER_LEFT));
}
gBattleStruct->introState++;
break;
case BATTLE_INTRO_STATE_WAIT_FOR_PLAYER_SEND_OUT_TEXT: