From cb49ceabf07425a80a10bf598e7a9521553f6858 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sun, 19 Sep 2021 09:58:37 +0800 Subject: [PATCH] replay: remove array subscript (#22268) --- selfdrive/ui/replay/replay.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/replay/replay.cc b/selfdrive/ui/replay/replay.cc index 6f76cd73d7..06a8ef9837 100644 --- a/selfdrive/ui/replay/replay.cc +++ b/selfdrive/ui/replay/replay.cc @@ -11,7 +11,7 @@ Replay::Replay(QString route, QStringList allow, QStringList block, SubMaster *sm_, QObject *parent) : sm(sm_), QObject(parent) { std::vector s; for (const auto &it : services) { - if ((allow[0].size() == 0 || allow.contains(it.name)) && + if ((allow.size() == 0 || allow.contains(it.name)) && !block.contains(it.name)) { s.push_back(it.name); socks.append(std::string(it.name));