Skip to content

Commit

Permalink
Core/Misc: Fix macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
walkline committed May 24, 2024
1 parent d8240fb commit f823708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/game/Handlers/CalendarHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void WorldSession::HandleCalendarGetCalendar(WorldPackets::Calendar::CalendarGet
WorldPackets::Calendar::CalendarSendCalendarRaidLockoutInfo& lockoutInfo = packet.RaidLockouts.emplace_back();
lockoutInfo.MapID = save->GetMapId();
lockoutInfo.DifficultyID = save->GetDifficulty();
lockoutInfo.ExpireTime = int32(std::max(save->GetResetTime() - currTime, SI64LIT(0)));
lockoutInfo.ExpireTime = int32(std::max(save->GetResetTime() - currTime, time_t(SI64LIT(0))));
lockoutInfo.InstanceID = save->GetInstanceId();
}
}
Expand Down Expand Up @@ -681,6 +681,6 @@ void WorldSession::SendCalendarRaidLockoutUpdated(InstanceSave const* save)
calendarRaidLockoutUpdated.MapID = save->GetMapId();
calendarRaidLockoutUpdated.DifficultyID = save->GetDifficulty();
calendarRaidLockoutUpdated.OldTimeRemaining = 0;
calendarRaidLockoutUpdated.NewTimeRemaining = std::max(save->GetResetTime() - GameTime::GetGameTime(), SI64LIT(0));
calendarRaidLockoutUpdated.NewTimeRemaining = std::max(save->GetResetTime() - GameTime::GetGameTime(), time_t(SI64LIT(0)));
SendPacket(calendarRaidLockoutUpdated.Write());
}

0 comments on commit f823708

Please sign in to comment.