1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 01:42:38 +01:00

Codechange: Use TypedIndexContainer for typed index containers

Instead of ReferenceThroughBaseContainer
This commit is contained in:
Jonathan G Rennison
2025-06-08 20:46:58 +01:00
committed by Peter Nelson
parent d0e49a297f
commit 63f1c2aa3a
17 changed files with 23 additions and 23 deletions

View File

@@ -347,7 +347,7 @@ private:
static std::tuple<bool, bool, bool, bool> DoCommandPrep();
static bool DoCommandProcessResult(const CommandCost &res, Script_SuspendCallbackProc *callback, bool estimate_only, bool asynchronous);
static CommandCallbackData *GetDoCommandCallback();
using RandomizerArray = ReferenceThroughBaseContainer<std::array<Randomizer, OWNER_END.base()>>;
using RandomizerArray = TypedIndexContainer<std::array<Randomizer, OWNER_END.base()>, Owner>;
static RandomizerArray random_states; ///< Random states for each of the scripts (game script uses OWNER_DEITY)
};