Improve performance of string lookup in AddGRFString

This commit is contained in:
Jonathan G Rennison
2022-05-30 23:51:44 +01:00
parent 9a131a90ca
commit d71e38446e
3 changed files with 35 additions and 12 deletions

View File

@@ -348,6 +348,8 @@ struct GRFFile : ZeroedMemoryAllocator {
byte ctrl_flags; ///< General GRF control flags
btree::btree_map<uint16, uint> string_map; ///< Map of local GRF string ID to string ID
GRFFile(const struct GRFConfig *config);
~GRFFile();