From cbcd47f8577e54e2988a68932c1a67565eb759f4 Mon Sep 17 00:00:00 2001 From: Daniel Ong Date: Mon, 3 Sep 2018 16:22:25 -0700 Subject: [PATCH] Fix negative DPS values --- MainWindow.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index ddaa8d2..e1ef87a 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -88,6 +88,8 @@ private void update_tick(object sender, EventArgs e) { this.in_quest = true; this.first_damage = DateTime.UtcNow; + Array.Clear(this.prev_player_damages, 0, this.prev_player_damages.Length); + Array.Clear(this.player_damages, 0, this.player_damages.Length); } this.prev_player_damages = this.player_damages;