Skip to content

Commit ca0ea7f

Browse files
committed
fix csgo AmmoReserve
1 parent 16db346 commit ca0ea7f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/demoinfocs/common/equipment.go

-4
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,6 @@ func (e *Equipment) AmmoReserve() int {
437437
// if the property doesn't exist we return 0 by default
438438
val, _ := e.Entity.PropertyValue("m_iPrimaryReserveAmmoCount")
439439

440-
if val.Any == nil {
441-
return 0
442-
}
443-
444440
return val.IntVal
445441
}
446442

0 commit comments

Comments
 (0)