From c597d09df05e4a6e1b3832a0f26ad21ce4c5b8cb Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 11 Nov 2020 19:33:20 +0800 Subject: Fix stupid divide by zero crash. --- visualization/qmpvisualization.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/visualization/qmpvisualization.cpp b/visualization/qmpvisualization.cpp index 0f73b8a..763ab4f 100644 --- a/visualization/qmpvisualization.cpp +++ b/visualization/qmpvisualization.cpp @@ -1101,6 +1101,9 @@ void qmpVisualization::init() closeh = new CloseHandler(this); rendererTh = nullptr; playing = false; + cts = 0x0402; + cks = 0; + ctp = 500000; memset(rpnid, 0xFF, sizeof(rpnid)); memset(rpnval, 0xFF, sizeof(rpnval)); memset(spectra, 0, sizeof(spectra)); -- cgit v1.2.3