1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 17:02:37 +01:00

Change: [Script] Include ScriptList contents in script memory allocation total

This commit is contained in:
Peter Nelson
2025-12-21 15:15:41 +00:00
committed by Peter Nelson
parent d7942c3fd0
commit 13ec1816dc

View File

@@ -182,8 +182,8 @@ protected:
}
public:
using ScriptListSet = std::set<std::pair<SQInteger, SQInteger>>; ///< List per value
using ScriptListMap = std::map<SQInteger, SQInteger>; ///< List per item
using ScriptListSet = std::set<std::pair<SQInteger, SQInteger>, std::less<>, ScriptStdAllocator<std::pair<SQInteger, SQInteger>>>; ///< List per value
using ScriptListMap = std::map<SQInteger, SQInteger, std::less<>, ScriptStdAllocator<std::pair<const SQInteger, SQInteger>>>; ///< List per item
ScriptListMap items; ///< The items in the list
ScriptListSet values; ///< The items in the list, sorted by value