mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 07:26:49 +01:00
fix possible bug
This commit is contained in:
@@ -52,7 +52,7 @@ public:
|
|||||||
uint8* getBuffer() { return m_buffer; }
|
uint8* getBuffer() { return m_buffer; }
|
||||||
uint16 getMessageSize() { return m_messageSize; }
|
uint16 getMessageSize() { return m_messageSize; }
|
||||||
void setMessageSize(uint16 messageSize) { m_messageSize = messageSize; }
|
void setMessageSize(uint16 messageSize) { m_messageSize = messageSize; }
|
||||||
bool eof() { return m_readPos == m_messageSize; }
|
bool eof() { return m_readPos >= m_messageSize; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool canRead(int bytes);
|
bool canRead(int bytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user