diff --git a/kloppy/infra/serializers/event/opta/deserializer.py b/kloppy/infra/serializers/event/opta/deserializer.py index e6f5959a..8d35b30f 100644 --- a/kloppy/infra/serializers/event/opta/deserializer.py +++ b/kloppy/infra/serializers/event/opta/deserializer.py @@ -278,9 +278,7 @@ def _parse_offside_pass(raw_qualifiers: Dict[int, str]) -> Dict: qualifiers = _get_event_qualifiers(raw_qualifiers) return dict( result=PassResult.OFFSIDE, - receiver_coordinates=Point( - x=float(raw_qualifiers[140]), y=float(raw_qualifiers[141]) - ), + receiver_coordinates = _get_end_coordinates(raw_qualifiers), receiver_player=None, receive_timestamp=None, qualifiers=qualifiers,