Skip to content

Commit

Permalink
Small bugfix to correct resetting of auras
Browse files Browse the repository at this point in the history
  • Loading branch information
lologarithm committed Sep 22, 2021
1 parent 3adede5 commit 2565048
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tbc/sim.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (sim *Simulation) reset() {
sim.CDs = [MagicIDLen]time.Duration{}
sim.auras = [MagicIDLen]Aura{}
if len(sim.activeAuraIDs) > 0 {
sim.activeAuraIDs = sim.activeAuraIDs[len(sim.activeAuraIDs)-1:] // chop off end of activeids slice, faster than making a new one
sim.activeAuraIDs = sim.activeAuraIDs[:0] // chop off end of activeids slice, faster than making a new one
}
sim.metrics = SimMetrics{
Casts: make([]*Cast, 0, 1000),
Expand Down
Binary file modified ui/lib.wasm
Binary file not shown.

0 comments on commit 2565048

Please sign in to comment.