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:
committed by
Peter Nelson
parent
d7942c3fd0
commit
13ec1816dc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user