From e6b794173f80d40fa821ad7b005bd18425645882 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 22 Jun 2024 19:37:36 +0800 Subject: [PATCH] fine --- ica-rs/plugins/name_utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ica-rs/plugins/name_utils/__init__.py b/ica-rs/plugins/name_utils/__init__.py index 6a39633..9ee09c8 100644 --- a/ica-rs/plugins/name_utils/__init__.py +++ b/ica-rs/plugins/name_utils/__init__.py @@ -90,8 +90,8 @@ class Player: team_bytes = name_lst[2].encode(encoding="utf-8") self.name = name_lst[0] self.team = name_lst[2] - self.name_len = len(name_lst[0]) - self.team_len = len(name_lst[2]) + self.name_len = len(name_bytes) + self.team_len = len(team_bytes) for i in range(self.name_len): self.name_str[i + 1] = name_bytes[i] for i in range(self.team_len):