mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
WiP on zip serialization
(-) still not works correctly
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
CMemoryBuffer::CMemoryBuffer():
|
||||
position(0)
|
||||
{
|
||||
|
||||
buffer.reserve(4096);
|
||||
}
|
||||
|
||||
si64 CMemoryBuffer::write(const ui8 * data, si64 size)
|
||||
@ -48,7 +48,7 @@ si64 CMemoryBuffer::read(ui8 * data, si64 size)
|
||||
si64 CMemoryBuffer::seek(si64 position)
|
||||
{
|
||||
this->position = position;
|
||||
if (this->position >=getSize())
|
||||
if (this->position >getSize())
|
||||
this->position = getSize();
|
||||
return this->position;
|
||||
}
|
||||
|
Reference in New Issue
Block a user