From a99503a86db154335478bf17f81e0972d4eea8d9 Mon Sep 17 00:00:00 2001 From: b166fe48b91eb09f279b79a4ecf57b2f8f0d3705 Date: Thu, 4 Feb 2021 16:29:04 -0500 Subject: [PATCH] idz: Fix team message encoding --- src/idz/userdb/encoder/_team.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idz/userdb/encoder/_team.ts b/src/idz/userdb/encoder/_team.ts index 36bde9a..e89cfe2 100644 --- a/src/idz/userdb/encoder/_team.ts +++ b/src/idz/userdb/encoder/_team.ts @@ -33,7 +33,7 @@ function _team1( const accessTime = (profile.accessTime.getTime() / 1000) | 0; buf.writeInt32LE(profile.aimeId, base + 0x0000); - writeSjisStr(buf, 0x0004, 0x0018, profile.name); + writeSjisStr(buf, base + 0x0004, base + 0x0018, profile.name); buf.writeInt32LE(profile.lv, base + 0x0018); buf.writeInt32LE(0, base + 0x0024); // Month points, TODO buf.writeUInt32LE(accessTime, base + 0x0034); @@ -85,7 +85,7 @@ function _team2( const accessTime = (profile.accessTime.getTime() / 1000) | 0; buf.writeInt32LE(profile.aimeId, base + 0x0000); - writeSjisStr(buf, 0x0004, 0x0018, profile.name); + writeSjisStr(buf, base + 0x0004, base + 0x0018, profile.name); buf.writeInt32LE(profile.lv, base + 0x0018); buf.writeInt32LE(0, base + 0x0024); // Month points, TODO buf.writeUInt32LE(accessTime, base + 0x0034);