Skip to content

Commit e932291

Browse files
committed
oops
1 parent 6a3981c commit e932291

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/ui/SongControlMenu.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,20 +244,19 @@ void SongControlMenu::checkDaSongPositions(float) {
244244
this->b->_bottom->setScaleX(9.375f);
245245
}
246246

247-
if (!this->m_currTimeLb || !this->m_totlTimeLb || !this->m_currProgBar || !this->m_darkProgBar) return;
248-
249247
SongManager& songManager = SongManager::get();
250248
const bool finished = songManager.getFinishedCalculatingSongLengths();
251249

252-
this->m_currTimeLb->setVisible(finished);
253-
this->m_totlTimeLb->setVisible(finished);
254-
this->m_currProgBar->setVisible(finished);
255-
this->m_darkProgBar->setVisible(finished);
250+
if (this->m_currTimeLb) this->m_currTimeLb->setVisible(finished);
251+
if (this->m_totlTimeLb) this->m_totlTimeLb->setVisible(finished);
252+
if (this->m_currProgBar) this->m_currProgBar->setVisible(finished);
253+
if (this->m_darkProgBar) this->m_darkProgBar->setVisible(finished);
256254
if (this->m_increDecreMenu) this->m_increDecreMenu->setVisible(finished);
257255
if (this->m_clipNode) this->m_clipNode->setVisible(finished);
258256
if (this->m_smallLabel) this->m_smallLabel->setPositionY(finished ? 18.5f : 15.f);
259257

260258
if (!finished) return;
259+
if (!this->m_currTimeLb || !this->m_totlTimeLb || !this->m_currProgBar || !this->m_darkProgBar) return;
261260

262261
FMODAudioEngine* fmod = FMODAudioEngine::get();
263262
const std::string& currSong = songManager.getCurrentSong();

0 commit comments

Comments
 (0)