fix gcc build

This commit is contained in:
2025-07-30 17:56:13 +02:00
parent 2e556e0d45
commit 2b8447766a
4 changed files with 9 additions and 5 deletions

View File

@@ -48,6 +48,10 @@ class Array {
return m_Data[a_Index];
}
const T& operator[](std::size_t a_Index) const {
return m_Data[a_Index];
}
~Array() {
delete [] m_Data;
}

View File

@@ -74,7 +74,7 @@ struct BeginGame {
struct LockSteps {
std::uint16_t m_FirstFrameNumber;
std::array<LockStep, LOCKSTEP_BUFFER_SIZE> m_LockSteps;
Array<LockStep, LOCKSTEP_BUFFER_SIZE> m_LockSteps;
};
struct WorldHeader {