Skip to content

Commit 917bf35

Browse files
BestAwperEverakiver
andcommitted
remove redundant type conversion
Co-authored-by: AkiVer <[email protected]>
1 parent 924474a commit 917bf35

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
@@ -354,7 +354,7 @@ func (p *Player) ControlledBot() *Player {
354354
// Health returns the player's health points, normally 0-100.
355355
func (p *Player) Health() int {
356356
if p.demoInfoProvider.IsSource2() {
357-
return int(getInt(p.PlayerPawnEntity(), "m_iHealth"))
357+
return getInt(p.PlayerPawnEntity(), "m_iHealth")
358358
}
359359

360360
return getInt(p.Entity, "m_iHealth")

0 commit comments

Comments
 (0)