~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/logic/path.cc

  • Committer: The Widelands Bunnybot
  • Date: 2022-02-27 18:58:23 UTC
  • Revision ID: bunnybot@widelands.org-20220227185823-tyvkc7z2dho9it5a
Fix misc clang-tidy checks in `logic` (#5255)

(by Noordfrees)
f48cadd044004aa7eb32d222927ec9b0ab744457

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
 
123
123
/// After which step does the node appear in this path?
124
124
/// \return -1 if node is not part of this path.
125
 
int32_t CoordPath::get_index(const Coords& c) const {
 
125
int32_t CoordPath::get_index(const Coords& field) const {
126
126
        for (uint32_t i = 0; i < coords_.size(); ++i) {
127
 
                if (coords_[i] == c) {
 
127
                if (coords_[i] == field) {
128
128
                        return i;
129
129
                }
130
130
        }