From a33c2ae198065368e55e9cd3a4d84569b92a6337 Mon Sep 17 00:00:00 2001 From: Edo Date: Sun, 30 Apr 2023 20:15:13 +0100 Subject: [PATCH] bdSteamAuth: remove static_cast --- src/game/demonware/services/bdSteamAuth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/demonware/services/bdSteamAuth.cpp b/src/game/demonware/services/bdSteamAuth.cpp index 4bc4f8c..d7c4b65 100644 --- a/src/game/demonware/services/bdSteamAuth.cpp +++ b/src/game/demonware/services/bdSteamAuth.cpp @@ -21,10 +21,10 @@ namespace demonware buffer.read_uint32(&ticket_size); uint8_t ticket[1024]; - buffer.read_bytes(std::min(ticket_size, static_cast(sizeof(ticket))), ticket); + buffer.read_bytes(std::min(ticket_size, sizeof(ticket)), ticket); game::native::bdAuthTicket auth_ticket{}; - std::memset(&auth_ticket, 0xA, sizeof auth_ticket); + std::memset(&auth_ticket, 0xA, sizeof(auth_ticket)); auth_ticket.m_magicNumber = 0x0EFBDADDE; auth_ticket.m_type = 0;