Convert Entity::CastToClient to Log.Out

This commit is contained in:
Akkadius 2015-01-24 22:20:58 -06:00
parent 1b1c82a3e7
commit a31ad485e4

View File

@ -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);
}