Skip to content

Commit 800a419

Browse files
committed
value
1 parent 341d667 commit 800a419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EndLevelLayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
219219

220220
if (!attemptLabel || !jumpsLabel) return;
221221

222-
const std::string& totalAttemptsString = fmt::format(std::locale("en_US.UTF-8"), "{:L}", level->m_attempts).c_str();
223-
const std::string& totalJumpsString = fmt::format(std::locale("en_US.UTF-8"), "{:L}", level->m_jumps).c_str();
222+
const std::string& totalAttemptsString = fmt::format(std::locale("en_US.UTF-8"), "{:L}", level->m_attempts.value()).c_str();
223+
const std::string& totalJumpsString = fmt::format(std::locale("en_US.UTF-8"), "{:L}", level->m_jumps.value()).c_str();
224224
if (showTotalAttemptsAndJumps == "fully replace") {
225225
attemptLabel->setString(fmt::format(std::locale("en_US.UTF-8"), "Total Attempts: {}", totalAttemptsString).c_str());
226226
jumpsLabel->setString(fmt::format(std::locale("en_US.UTF-8"), "Total Jumps: {}", totalJumpsString).c_str());

0 commit comments

Comments
 (0)