Skip to content

Commit 16acccb

Browse files
markus-waakiver
authored andcommitted
make wsl happy
1 parent 0c19112 commit 16acccb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/demoinfocs/datatables.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,10 +898,12 @@ func (p *parser) bindWeaponS2(entity st.Entity) {
898898
// This happens when:
899899
// - The player is inside the buy zone
900900
// - The player's money has increased AND the weapon entity is destroyed at the same tick (unfortunately the money is updated first)
901-
var owner *common.Player
902-
var oldOwnerMoney int
903-
var lastMoneyUpdateTick int
904-
var lastMoneyIncreased bool
901+
var (
902+
owner *common.Player
903+
oldOwnerMoney int
904+
lastMoneyUpdateTick int
905+
lastMoneyIncreased bool
906+
)
905907

906908
entity.Property("m_hOwnerEntity").OnUpdate(func(val st.PropertyValue) {
907909
weaponOwner := p.GameState().Participants().FindByPawnHandle(val.Handle())

0 commit comments

Comments
 (0)