Codechange: Add missing this-> in override manager.

Variable scope is also tweaked in a couple of cases reducing line count.
This commit is contained in:
Peter Nelson
2023-01-22 17:03:48 +00:00
committed by Michael Lutz
parent eedb786872
commit bcc53c5ad5
4 changed files with 51 additions and 56 deletions

View File

@@ -216,8 +216,8 @@ public:
uint16 GetSubstituteID(uint16 entity_id) const;
virtual uint16 GetID(uint8 grf_local_id, uint32 grfid) const;
inline uint16 GetMaxMapping() const { return max_new_entities; }
inline uint16 GetMaxOffset() const { return max_offset; }
inline uint16 GetMaxMapping() const { return this->max_new_entities; }
inline uint16 GetMaxOffset() const { return this->max_offset; }
};