mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
Fix BinaryTree skip, small otb changes
This commit is contained in:
@@ -111,6 +111,12 @@ void BinaryTree::seek(uint pos)
|
||||
m_pos = pos;
|
||||
}
|
||||
|
||||
void BinaryTree::skip(uint len)
|
||||
{
|
||||
unserialize();
|
||||
seek(tell() + len);
|
||||
}
|
||||
|
||||
uint8 BinaryTree::getU8()
|
||||
{
|
||||
unserialize();
|
||||
|
@@ -39,7 +39,7 @@ public:
|
||||
~BinaryTree();
|
||||
|
||||
void seek(uint pos);
|
||||
void skip(uint len) { seek(tell() + len); }
|
||||
void skip(uint len);
|
||||
uint tell() { return m_pos; }
|
||||
uint size() { unserialize(); return m_buffer.size(); }
|
||||
|
||||
|
Reference in New Issue
Block a user