diff --git a/Source/Core/VideoCommon/DataReader.h b/Source/Core/VideoCommon/DataReader.h index 51430d508d..788346d514 100644 --- a/Source/Core/VideoCommon/DataReader.h +++ b/Source/Core/VideoCommon/DataReader.h @@ -22,9 +22,9 @@ public: return src; } - __forceinline size_t size() { return end - buffer; } + __forceinline size_t size() const { return end - buffer; } template - __forceinline T Peek(int offset = 0) + __forceinline T Peek(int offset = 0) const { T data; std::memcpy(&data, &buffer[offset], sizeof(T));