Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a813bcb

Browse files
committed
use slightly more succinct idiom
1 parent 1a283ea commit a813bcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/autofarm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class AutoFarm {
341341

342342
for (auto& th : thresholds)
343343
{
344-
if (lastCounts.find(th.first) != lastCounts.end())
344+
if (lastCounts.count(th.first) > 0)
345345
continue;
346346
auto plant = world->raws.plants.all[th.first];
347347
out << plant->id << " limit " << getThreshold(th.first) << " current 0" << '\n';

0 commit comments

Comments
 (0)