mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
fix bug
This commit is contained in:
@@ -41,7 +41,7 @@ void ProtocolLogin::login(const std::string& accountName, const std::string& acc
|
||||
//std::string host = "tecserver.zapto.org";
|
||||
uint16 port = 7171;
|
||||
|
||||
connect(host, port, std::bind(&ProtocolLogin::onConnect, this));
|
||||
connect(host, port, std::bind(&ProtocolLogin::onConnect, asProtocolLogin()));
|
||||
}
|
||||
|
||||
void ProtocolLogin::onConnect()
|
||||
|
@@ -22,6 +22,9 @@ public:
|
||||
void onRecv(InputMessage *inputMessage);
|
||||
|
||||
void cancel() { /* TODO: this func */ }
|
||||
|
||||
ProtocolLoginPtr asProtocolLogin() { return std::static_pointer_cast<ProtocolLogin>(shared_from_this()); }
|
||||
|
||||
virtual const char* getLuaTypeName() const { return "ProtocolLogin"; }
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user