From 88400b7e1cb3f766b202d148b19350f0307a027f Mon Sep 17 00:00:00 2001 From: Wiktor Mazur Date: Wed, 18 Dec 2019 21:34:43 +0100 Subject: [PATCH] CharacterStats Response workaround --- backend/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/build.rs b/backend/build.rs index 81fa1d3..1dd81e9 100644 --- a/backend/build.rs +++ b/backend/build.rs @@ -174,6 +174,10 @@ fn generate_messages() -> String { return_code: _, debug_message: _ }}) => {{ + if parameters.len() >= 40 {{ // TODO: Fix this workaround, on some configurations 253 isn't filled + return CharacterStats::parse(parameters); + }} + match parameters.get(&253u8) {{ {} _ => None