Skip to content

Commit 372ffb1

Browse files
authored
Merge branch 'master' into add-otherdeath-event
2 parents e5eef16 + 5c02316 commit 372ffb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/demoinfocs/common/player.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func (p *Player) Health() int {
363363
// Armor returns the player's armor points, normally 0-100.
364364
func (p *Player) Armor() int {
365365
if p.demoInfoProvider.IsSource2() {
366-
return getInt(p.Entity, "m_iPawnArmor")
366+
return getInt(p.PlayerPawnEntity(), "m_ArmorValue")
367367
}
368368

369369
return getInt(p.Entity, "m_ArmorValue")

0 commit comments

Comments
 (0)