diff --git a/src/trainer_see.c b/src/trainer_see.c index 4439ce6977..54ea4ebf22 100644 --- a/src/trainer_see.c +++ b/src/trainer_see.c @@ -380,6 +380,7 @@ bool8 CheckForTrainersWantingBattle(void) if (numTrainers == 0xFF) // non-trainerbatle script { u32 objectEventId = gApproachingTrainers[gNoOfApproachingTrainers - 1].objectEventId; + gApproachingTrainers[gNoOfApproachingTrainers - 1].trainerScriptPtr = GetObjectEventScriptPointerByObjectEventId(objectEventId); gSelectedObjectEvent = objectEventId; gSpecialVar_LastTalked = gObjectEvents[objectEventId].localId; ScriptContext_SetupScript(EventScript_ObjectApproachPlayer);