diff --git a/Source/Core/Common/ChunkFile.h b/Source/Core/Common/ChunkFile.h index 74cf9f475b..e0aecbea94 100644 --- a/Source/Core/Common/ChunkFile.h +++ b/Source/Core/Common/ChunkFile.h @@ -127,17 +127,6 @@ public: } } - template - void DoContainer(T& x) - { - u32 size = (u32)x.size(); - Do(size); - x.resize(size); - - for (auto& elem : x) - Do(elem); - } - template void Do(std::vector& x) { @@ -276,6 +265,17 @@ public: } private: + template + void DoContainer(T& x) + { + size_t size = x.size(); + Do(size); + x.resize(size); + + for (auto& elem : x) + Do(elem); + } + __forceinline void DoByte(u8& x) { switch (mode)