Skip to content

Commit 5619d7f

Browse files
committed
idk might be a good idea to put that down there
1 parent 5560d72 commit 5619d7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FLAlertLayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ time_t t = time(nullptr);
499499
auto now = fmt::localtime(t);
500500

501501
void DeltaruneAlertLayer::handleAprilFools() {
502-
auto& nameToFile = m_fields->nameToFile;
503-
504502
if (now.tm_mon != 3 || now.tm_mday != 1)
505503
return;
506504

505+
auto& nameToFile = m_fields->nameToFile;
507506
auto randomSound = nameToFile.begin();
507+
508508
std::advance(randomSound, mt() % nameToFile.size());
509509
m_fields->textSound = randomSound->first;
510510
}

0 commit comments

Comments
 (0)