Skip to content

Commit 6ea9529

Browse files
committed
Use .at() indexing instead of [].
1 parent 1840d92 commit 6ea9529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reaper-adm-extension/src/reaper_adm/exportaction_admsource-earvst.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ bool EarVstExportSources::getEnvelopeBypassed(TrackEnvelope* env, ReaperAPI cons
375375
while (std::getline(chunkSs, line)) {
376376
auto activePos = line.rfind("ACT ", 0);
377377
if (activePos != std::string::npos) {
378-
auto active = static_cast<int>(line[activePos + 4]) - 48;
378+
auto active = static_cast<int>(line.at(activePos + 4)) - 48;
379379
envBypassed = !active;
380380
break;
381381
}

0 commit comments

Comments
 (0)