Some cleanups. (might break build for scripts as they are a WIP)

This commit is contained in:
hondacrx
2023-10-08 10:35:31 -04:00
parent fa10b981bd
commit cda53c8e7f
208 changed files with 2266 additions and 2329 deletions
+3 -3
View File
@@ -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;