summaryrefslogtreecommitdiff
path: root/src/newgrf_commons.h
diff options
context:
space:
mode:
authorPeterN <peter1138@openttd.org>2021-05-08 11:36:39 +0100
committerGitHub <noreply@github.com>2021-05-08 11:36:39 +0100
commit69e5da0b544e83ed445cf500938c24602230fa2c (patch)
tree5cfd1526084cc242bd78d2fcffa9b3f99b2001e6 /src/newgrf_commons.h
parent881e1da51d47bde0b6ddf86be1da55aceced7839 (diff)
downloadopenttd-69e5da0b544e83ed445cf500938c24602230fa2c.tar.xz
Codechange: Don't save unused NewGRF override mappings. (#9202)
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r--src/newgrf_commons.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h
index ed18aaa9e..b86e3d10a 100644
--- a/src/newgrf_commons.h
+++ b/src/newgrf_commons.h
@@ -218,6 +218,7 @@ public:
inline uint16 GetMaxMapping() const { return max_new_entities; }
inline uint16 GetMaxOffset() const { return max_offset; }
+ inline bool IsValidID(uint16 entity_id) const { return entity_overrides[entity_id] != invalid_ID; }
};