mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Convert Entity::CastToClient to Log.Out
This commit is contained in:
parent
1b1c82a3e7
commit
a31ad485e4
@ -74,15 +74,15 @@ Entity::~Entity()
|
||||
Client *Entity::CastToClient()
|
||||
{
|
||||
if (this == 0x00) {
|
||||
std::cout << "CastToClient error (nullptr)" << std::endl;
|
||||
Log.Out(Logs::General, Logs::Error, "CastToClient error (not client)");
|
||||
return 0;
|
||||
}
|
||||
#ifdef _EQDEBUG
|
||||
|
||||
if (!IsClient()) {
|
||||
std::cout << "CastToClient error (not client?)" << std::endl;
|
||||
Log.Out(Logs::General, Logs::Error, "CastToClient error (not client)");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
return static_cast<Client *>(this);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user