Skip to content

Commit 3676499

Browse files
committed
Check for name, not pfentity
1 parent 4e02eab commit 3676499

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parser/formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func getPlayers(
259259

260260
func playerExists(profileKeys *map[string]ProfileKey, playerNum int) bool {
261261
// If a player's pfentity key is populated in the profile keys, then the player exists.
262-
playerKey := fmt.Sprintf("gameplayer%dpfentity", playerNum)
262+
playerKey := fmt.Sprintf("gameplayer%dname", playerNum)
263263
return (*profileKeys)[playerKey].StringVal != ""
264264
}
265265

parser/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func Parse(replayPath string, slim bool, stats bool, isGzip bool) (ReplayFormatt
7373
if err != nil {
7474
return ReplayFormatted{}, err
7575
}
76-
// printProfileKeys(profileKeys)
76+
//printProfileKeys(profileKeys)
7777
// techtreerootnode, err := parseXmb(&data, xmbMap["techtree"])
7878
// if err != nil {
7979
// return ReplayFormatted{}, err

0 commit comments

Comments
 (0)