use slightly more succinct idiom

develop
Kelly Kinkade 2023-01-18 16:54:30 -06:00
parent 1a283eaf47
commit a813bcb769
1 changed files with 1 additions and 1 deletions

@ -341,7 +341,7 @@ public:
for (auto& th : thresholds)
{
if (lastCounts.find(th.first) != lastCounts.end())
if (lastCounts.count(th.first) > 0)
continue;
auto plant = world->raws.plants.all[th.first];
out << plant->id << " limit " << getThreshold(th.first) << " current 0" << '\n';