From 0ebd3889b1cb62cfabbe01b6e953bfc02c8e6575 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 6 Sep 2018 03:47:45 +0200 Subject: make parser more lenient Somehow, new files (after ~2018-08-10) won't parse without this. --- src/raw/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/raw') diff --git a/src/raw/parser.rs b/src/raw/parser.rs index 97c0bc7..2de867b 100644 --- a/src/raw/parser.rs +++ b/src/raw/parser.rs @@ -283,8 +283,8 @@ pub fn parse_event(input: &mut T) -> ParseResult { let iff = IFF::from_u8(input.read_u8()?).unwrap_or(IFF::None); let buff = input.read_u8()?; let result = CbtResult::from_u8(input.read_u8()?).unwrap_or(CbtResult::None); - let is_activation = CbtActivation::from_u8(input.read_u8()?)?; - let is_buffremove = CbtBuffRemove::from_u8(input.read_u8()?)?; + let is_activation = CbtActivation::from_u8(input.read_u8()?).unwrap_or(CbtActivation::None); + let is_buffremove = CbtBuffRemove::from_u8(input.read_u8()?).unwrap_or(CbtBuffRemove::None); let is_ninety = input.read_u8()? != 0; let is_fifty = input.read_u8()? != 0; let is_moving = input.read_u8()? != 0; -- cgit v1.2.3