Skip to content

Commit 21e1478

Browse files
committed
work
1 parent 335ecd6 commit 21e1478

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

smartnet.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ float parse_message(string s) {
386386
if (rx->timeout() > 5.0) {
387387

388388

389-
for(std::vector<Talkgroup *>::iterator it = active_tg.begin(); it != active_tg.end(); ++it) {
390-
Talkgroup *tg = (Talkgroup *) *it;
389+
for(std::vector<Talkgroup *>::iterator tg_it = active_tg.begin(); tg_it != active_tg.end(); ++tg_it) {
390+
Talkgroup *tg = (Talkgroup *) *tg_it;
391391
if (tg->number == address) {
392-
active_tg.erase(it);
392+
active_tg.erase(tg_it);
393393
break;
394394
}
395395
}

0 commit comments

Comments
 (0)