mirror of
https://github.com/maciejpedzich/f1-game-packet-parser.git
synced 2025-04-12 00:21:11 +02:00
fix: remove incorrect assert for PENA event's other_vehicle_index value range
This commit is contained in:
parent
eef718c6c6
commit
9b165c456d
@ -102,14 +102,8 @@ pub enum EventDetails {
|
||||
)]
|
||||
vehicle_index: usize,
|
||||
/// Index of the other car involved.
|
||||
#[br(
|
||||
map(u8_to_usize),
|
||||
assert(
|
||||
other_vehicle_index < MAX_NUM_CARS,
|
||||
"Penalty event has an invalid other vehicle index: {}",
|
||||
other_vehicle_index
|
||||
)
|
||||
)]
|
||||
/// Set to 255 if only one driver is involved.
|
||||
#[br(map(u8_to_usize))]
|
||||
other_vehicle_index: usize,
|
||||
/// Time gained/spent doing the action in seconds.
|
||||
time: u8,
|
||||
|
Loading…
x
Reference in New Issue
Block a user