Some cleanups. (might break build for scripts as they are a WIP)
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Game
|
||||
void HandleInspect(Inspect inspect)
|
||||
{
|
||||
Player player = Global.ObjAccessor.GetPlayer(_player, inspect.Target);
|
||||
if (!player)
|
||||
if (player == null)
|
||||
{
|
||||
Log.outDebug(LogFilter.Network, "WorldSession.HandleInspectOpcode: Target {0} not found.", inspect.Target.ToString());
|
||||
return;
|
||||
@@ -51,7 +51,7 @@ namespace Game
|
||||
}
|
||||
|
||||
Guild guild = Global.GuildMgr.GetGuildById(player.GetGuildId());
|
||||
if (guild)
|
||||
if (guild != null)
|
||||
{
|
||||
InspectGuildData guildData;
|
||||
guildData.GuildGUID = guild.GetGUID();
|
||||
@@ -83,7 +83,7 @@ namespace Game
|
||||
void HandleQueryInspectAchievements(QueryInspectAchievements inspect)
|
||||
{
|
||||
Player player = Global.ObjAccessor.GetPlayer(_player, inspect.Guid);
|
||||
if (!player)
|
||||
if (player == null)
|
||||
{
|
||||
Log.outDebug(LogFilter.Network, "WorldSession.HandleQueryInspectAchievements: [{0}] inspected unknown Player [{1}]", GetPlayer().GetGUID().ToString(), inspect.Guid.ToString());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user