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
@@ -39,7 +39,7 @@ namespace Game.Scenarios
foreach (ObjectGuid guid in _players)
{
Player player = Global.ObjAccessor.GetPlayer(_map, guid);
if (player)
if (player != null)
SendBootPlayer(player);
}
@@ -60,7 +60,7 @@ namespace Game.Scenarios
foreach (ObjectGuid guid in _players)
{
Player player = Global.ObjAccessor.GetPlayer(_map, guid);
if (player)
if (player != null)
player.RewardQuest(quest, LootItemType.Item, 0, null, false);
}
}
@@ -223,7 +223,7 @@ namespace Game.Scenarios
foreach (ObjectGuid guid in _players)
{
Player player = Global.ObjAccessor.GetPlayer(_map, guid);
if (player)
if (player != null)
player.SendPacket(data);
}
}