Commit 57ad2fc7 authored by Sébastien Gonzalve's avatar Sébastien Gonzalve Committed by Arjan Spieard

Initialize variables

They are laterly used uninitialized.
parent 28cb3ddf
......@@ -207,7 +207,7 @@ bool Music::prepare() {
ScreenSongs* sSongs = static_cast<ScreenSongs *>(gm->getScreen("Songs"));
double pstart = sSongs->getSongs().currentPtr()->preview_start;
pstart = (std::isnan(pstart) ? 0.0 : pstart);
double first_period, first_beat;
double first_period = 0.0, first_beat = 0.0;
std::vector<double> extra_beats;
Song::Beats& beats = sSongs->getSongs().currentPtr()->beats;
if (!sSongs->getSongs().currentPtr()->hasControllers()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment