From 9e6f86cb163ac593a0174dd340daf356deb47abd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Mar 2020 22:36:44 -0400 Subject: [PATCH] CObjectList: Make use of std::array where applicable Same behavior, but with stronger typing. --- Runtime/CObjectList.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/CObjectList.hpp b/Runtime/CObjectList.hpp index 121781177..a9f7a443d 100644 --- a/Runtime/CObjectList.hpp +++ b/Runtime/CObjectList.hpp @@ -1,5 +1,7 @@ #pragma once +#include + #include "Runtime/RetroTypes.hpp" #include "Runtime/World/CEntity.hpp" @@ -25,7 +27,7 @@ class CObjectList { s16 next = -1; s16 prev = -1; }; - SObjectListEntry x0_list[1024]; // was an rstl::prereserved_vector + std::array x0_list; // was an rstl::prereserved_vector EGameObjectList x2004_listEnum; s16 x2008_firstId = -1; u16 x200a_count = 0;