forked from mirrors/0ad
325bedcf3f
Replaced the raw C array for m_Buffer with std::array to improve bounds safety and code clarity. - Used .data() and .at() for buffer access - Added check for bufferCount exceeding OGG_MAX_BUFFER_COUNT - Left FetchDataIntoBuffer unchanged to avoid breaking external usage (e.g. CStreamItem) This refactor improves safety while keeping external API stable.