mirror of
https://github.com/maciejpedzich/f1-game-packet-parser.git
synced 2025-04-20 03:21:12 +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,
|
vehicle_index: usize,
|
||||||
/// Index of the other car involved.
|
/// Index of the other car involved.
|
||||||
#[br(
|
/// Set to 255 if only one driver is involved.
|
||||||
map(u8_to_usize),
|
#[br(map(u8_to_usize))]
|
||||||
assert(
|
|
||||||
other_vehicle_index < MAX_NUM_CARS,
|
|
||||||
"Penalty event has an invalid other vehicle index: {}",
|
|
||||||
other_vehicle_index
|
|
||||||
)
|
|
||||||
)]
|
|
||||||
other_vehicle_index: usize,
|
other_vehicle_index: usize,
|
||||||
/// Time gained/spent doing the action in seconds.
|
/// Time gained/spent doing the action in seconds.
|
||||||
time: u8,
|
time: u8,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user