diff options
Diffstat (limited to 'src/engine/EventBuffer.cpp')
-rw-r--r-- | src/engine/EventBuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/EventBuffer.cpp b/src/engine/EventBuffer.cpp index 6b27ef4e..e1e55fdb 100644 --- a/src/engine/EventBuffer.cpp +++ b/src/engine/EventBuffer.cpp @@ -94,11 +94,11 @@ EventBuffer::copy(Context& context, const Buffer* src_buf) if (src->_data == _data) return; - assert(capacity() >= src->capacity()); + assert(src->_data->header_size == _data->header_size); + assert(capacity() >= _data->header_size + src->_data->size); rewind(); - assert(src->_data->header_size == _data->header_size); memcpy(_data, src->_data, _data->header_size + src->_data->size); _iter = src->_iter; |