diff --git a/source/utils/HeapMemoryFixedSize.cpp b/source/utils/HeapMemoryFixedSize.cpp index 52bf463..f0a5f5f 100644 --- a/source/utils/HeapMemoryFixedSize.cpp +++ b/source/utils/HeapMemoryFixedSize.cpp @@ -64,6 +64,7 @@ HeapMemoryFixedSizePool::operator bool() const { HeapMemoryFixedSizePool::MemorySegmentInfo HeapMemoryFixedSizePool::operator[](const int idx) const { if (idx < 0 || idx >= static_cast(mSegmentInfos.size())) { DEBUG_FUNCTION_LINE_ERR("Out of bounce access (tried to access index %d; size is %d", idx, mSegmentInfos.size()); + return {nullptr, 0}; } return mSegmentInfos[idx]; }