Skip to content

Commit 27ee52f

Browse files
committed
oops
1 parent 0cb1622 commit 27ee52f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui/MLRSongCell.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ void MLRSongCell::checkIfCurrentSong() const {
143143
}
144144

145145
void MLRSongCell::toggleEven(const bool isEven) {
146+
if (this->m_songData.isEmpty) return;
146147
this->setColor(isEven ? cocos2d::ccColor3B{161, 88, 44} : cocos2d::ccColor3B{194, 114, 62});
147148
this->setID(fmt::format("song-cell-{}"_spr, isEven));
148149
}

0 commit comments

Comments
 (0)