mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 10:02:06 +08:00
replay: remove array subscript (#22268)
old-commit-hash: cb49ceabf07425a80a10bf598e7a9521553f6858
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
Replay::Replay(QString route, QStringList allow, QStringList block, SubMaster *sm_, QObject *parent) : sm(sm_), QObject(parent) {
|
||||
std::vector<const char*> 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));
|
||||
|
||||
Reference in New Issue
Block a user