This commit is contained in:
shenjack 2024-06-22 19:37:36 +08:00
parent f1830d978a
commit e6b794173f
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -90,8 +90,8 @@ class Player:
team_bytes = name_lst[2].encode(encoding="utf-8") team_bytes = name_lst[2].encode(encoding="utf-8")
self.name = name_lst[0] self.name = name_lst[0]
self.team = name_lst[2] self.team = name_lst[2]
self.name_len = len(name_lst[0]) self.name_len = len(name_bytes)
self.team_len = len(name_lst[2]) self.team_len = len(team_bytes)
for i in range(self.name_len): for i in range(self.name_len):
self.name_str[i + 1] = name_bytes[i] self.name_str[i + 1] = name_bytes[i]
for i in range(self.team_len): for i in range(self.team_len):