Skip to content

Commit

Permalink
Fix crash in click to walk
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Mar 10, 2022
1 parent 16f8405 commit d1b9dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EndlessClient/Rendering/Character/CharacterAnimator.cs
Expand Up @@ -92,7 +92,7 @@ public void StartMainCharacterWalkAnimation(MapCoordinate? targetCoordinate = nu

_walkPath = _pathFinder.FindPath(characterCoord, _targetCoordinate.Value);

if (!_otherPlayerStartWalkingTimes.ContainsKey(_characterRepository.MainCharacter.ID))
if (!_otherPlayerStartWalkingTimes.ContainsKey(_characterRepository.MainCharacter.ID) && _walkPath.Any())
{
rp = FaceTarget(characterCoord, _walkPath.Peek(), rp);
_characterRepository.MainCharacter = _characterRepository.MainCharacter.WithRenderProperties(rp);
Expand Down

0 comments on commit d1b9dea

Please sign in to comment.