Skip to content

Commit e617940

Browse files
committed
fix: fix compile thing
1 parent 14ccf24 commit e617940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jukebox/jukebox/ui/nong_add_popup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,10 @@ void NongAddPopup::onPublish(CCObject* target) {
563563
Song* replacedNong = m_replacedNong.value();
564564

565565
std::string songSpecificParams = "";
566+
const auto pathStr = geode::utils::string::pathToString(
567+
replacedNong->path().value());
566568
switch (replacedNong->type()) {
567569
case NongType::LOCAL:
568-
const auto pathStr = geode::utils::string::pathToString(
569-
replacedNong->path().value());
570570
songSpecificParams =
571571
fmt::format("&path={}&source=local", pathStr);
572572
break;

0 commit comments

Comments
 (0)