diff --git a/src/framework/luafunctions.cpp b/src/framework/luafunctions.cpp index 3e0290e3..08cd53f8 100644 --- a/src/framework/luafunctions.cpp +++ b/src/framework/luafunctions.cpp @@ -777,7 +777,7 @@ void Application::registerLuaFunctions() g_lua.registerClass(); g_lua.bindClassStaticFunction("create", []{ return InputMessagePtr(new InputMessage); }); g_lua.bindClassMemberFunction("setBuffer", &InputMessage::setBuffer); - g_lua.bindClassMemberFunction("getBuffer", &InputMessage::getBuffer); + g_lua.bindClassMemberFunction("getBuffer", &InputMessage::getBuffer); g_lua.bindClassMemberFunction("skipBytes", &InputMessage::skipBytes); g_lua.bindClassMemberFunction("getU8", &InputMessage::getU8); g_lua.bindClassMemberFunction("getU16", &InputMessage::getU16); diff --git a/src/framework/net/inputmessage.h b/src/framework/net/inputmessage.h index de799225..cb1b685e 100644 --- a/src/framework/net/inputmessage.h +++ b/src/framework/net/inputmessage.h @@ -37,8 +37,8 @@ public: InputMessage(); - void setBuffer(const std::string& buffer); - std::string getBuffer() { return std::string((char*)m_buffer + m_headerPos, m_messageSize); } + void setBuffer(const std::string& buffer); + std::string getBuffer() { return std::string((char*)m_buffer + m_headerPos, m_messageSize); } void skipBytes(uint16 bytes) { m_readPos += bytes; } void setReadPos(uint16 readPos) { m_readPos = readPos; }