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