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
+2 -2
View File
@@ -87,7 +87,7 @@ namespace Game
void HandleCalendarCommunityInvite(CalendarCommunityInviteRequest calendarCommunityInvite)
{
Guild guild = Global.GuildMgr.GetGuildById(GetPlayer().GetGuildId());
if (guild)
if (guild != null)
guild.MassInviteToEvent(this, calendarCommunityInvite.MinLevel, calendarCommunityInvite.MaxLevel, (GuildRankOrder)calendarCommunityInvite.MaxRankOrder);
}
@@ -308,7 +308,7 @@ namespace Game
return;
Player player = Global.ObjAccessor.FindPlayerByName(calendarInvite.Name);
if (player)
if (player != null)
{
// Invitee is online
inviteeGuid = player.GetGUID();