Skip to content

Commit

Permalink
TrainerWalkToPlayer should reference wSeenTrainerDistance (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcandth authored Nov 23, 2022
1 parent f7d26fb commit c4e3f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/overworld/player_object.asm
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ TrainerWalkToPlayer:
call InitMovementBuffer
ld a, movement_step_sleep
call AppendToMovementBuffer
ld a, [wWalkingIntoNPC]
ld a, [wSeenTrainerDistance]
dec a
jr z, .TerminateStep
ldh a, [hLastTalked]
Expand Down

0 comments on commit c4e3f2b

Please sign in to comment.