Update src/pokemon_storage_system.c

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
TheXaman 2022-08-30 17:03:28 +02:00 committed by GitHub
parent 79c4fa560f
commit 155465a919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1669,12 +1669,15 @@ static void FieldTask_ReturnToPcMenu(void)
MainCallback vblankCb = gMain.vblankCallback;
SetVBlankCallback(NULL);
if (!FlagGet(FLAG_SYS_PC_FROM_DEBUG_MENU)) {
if (!FlagGet(FLAG_SYS_PC_FROM_DEBUG_MENU))
{
taskId = CreateTask(Task_PCMainMenu, 80);
gTasks[taskId].tState = 0;
gTasks[taskId].tSelectedOption = sPreviousBoxOption;
Task_PCMainMenu(taskId);
} else {
}
else
{
FlagClear(FLAG_SYS_PC_FROM_DEBUG_MENU);
ScriptContext_Enable();
}