Skip to content

Commit

Permalink
fix: autosubmit UB
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Nov 26, 2024
1 parent 8b50a00 commit 818ea9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Features/AutoSubmit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static void testApiKey() {
// FIXME: add API maps endpoint on board.portal2.sr
if (sar.game->Is(SourceGame_Portal2)) {
for (const auto &map : Game::maps) {
if (map.chamberId != "") {
if (strlen(map.chamberId) > 0) {
g_map_ids.insert({map.fileName, map.chamberId});
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Features/PlayerTrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,6 @@ CON_COMMAND(sar_trace_compare, "sar_trace_compare <trace 1> <trace 2> - compares

console->Print("Comparing traces \"%s\" and \"%s\":\n", trace1Name, trace2Name);

const auto goodColor = Color(110, 247, 76);
const auto badColor = Color(255, 100, 100);

auto startTick1 = tickInternalToUser(0, *trace1);
Expand Down

0 comments on commit 818ea9a

Please sign in to comment.