mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-21 09:32:25 +00:00
Fix for pointer crash [skip ci]
This commit is contained in:
parent
c90bed9f69
commit
b1704377da
@ -39,8 +39,22 @@ public:
|
||||
void SendStatus();
|
||||
|
||||
void SendPacket(ServerPacket* pack);
|
||||
void SendAccountUpdate(ServerPacket* pack);
|
||||
bool Connected() { return IsLegacy ? legacy_client->Connected() : client->Connected(); }
|
||||
void SendAccountUpdate(ServerPacket *pack);
|
||||
bool Connected()
|
||||
{
|
||||
if (IsLegacy) {
|
||||
if (legacy_client) {
|
||||
return legacy_client->Connected();
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (client) {
|
||||
return client->Connected();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
bool CanUpdate() { return CanAccountUpdate; }
|
||||
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user