Skip to content

Commit 90e0581

Browse files
Merge pull request #110 from ZetaTwo/player-unk2-value
Change the zero const to a signed integer in the de/player struct
2 parents 0db5cb4 + 4c643a9 commit 90e0581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mgz/header/de.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"name"/de_string,
3636
"type"/PlayerTypeEnum(Int32ul),
3737
"profile_id"/Int32ul,
38-
Const(b"\x00\x00\x00\x00"),
38+
"ai_unknown" / Int32sl, # Often 0, sometimes -1 for AI players
3939
"player_number"/Int32sl,
4040
"hd_rm_elo"/If(lambda ctx: find_save_version(ctx) < 25.22, Int32ul),
4141
"hd_dm_elo"/If(lambda ctx: find_save_version(ctx) < 25.22, Int32ul),

0 commit comments

Comments
 (0)