From e39c4d4f8ce1714b4b346c64312fd65e08db0580 Mon Sep 17 00:00:00 2001 From: Richard Fortier Date: Wed, 4 Dec 2024 11:32:25 -0500 Subject: [PATCH] Simpler syntax. --- Code/client/Services/Generic/MagicService.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/client/Services/Generic/MagicService.cpp b/Code/client/Services/Generic/MagicService.cpp index dcf8e8cba..63cf11c8a 100644 --- a/Code/client/Services/Generic/MagicService.cpp +++ b/Code/client/Services/Generic/MagicService.cpp @@ -314,7 +314,7 @@ void MagicService::OnAddTargetEvent(const AddTargetEvent& acEvent) noexcept if (it == std::end(view)) { spdlog::warn("Form id not found for magic add target, form id: {:X}", acEvent.TargetID); - m_queuedEffects[acEvent.TargetID] = std::pair(0, request); + m_queuedEffects[acEvent.TargetID] = std::pair(0, request); return; } @@ -322,7 +322,7 @@ void MagicService::OnAddTargetEvent(const AddTargetEvent& acEvent) noexcept if (!serverIdRes.has_value()) { spdlog::warn("Server id not found for magic add target, form id: {:X}", acEvent.TargetID); - m_queuedEffects[acEvent.TargetID] = std::pair(0, request); + m_queuedEffects[acEvent.TargetID] = std::pair(0, request); return; } @@ -333,7 +333,7 @@ void MagicService::OnAddTargetEvent(const AddTargetEvent& acEvent) noexcept if (casterIt == std::end(view)) { spdlog::warn("Form id not found for magic add target, form id: {:X}", acEvent.CasterID); - m_queuedEffects[acEvent.TargetID] = std::pair(0, request); + m_queuedEffects[acEvent.TargetID] = std::pair(0, request); return; } @@ -356,7 +356,7 @@ void MagicService::OnNotifyAddTarget(const NotifyAddTarget& acMessage) noexcept if (!pActor) { spdlog::warn(__FUNCTION__ ": could not find actor server id {:X}", acMessage.TargetId); - m_queuedRemoteEffects[acMessage.TargetId] = std::pair(0, acMessage); + m_queuedRemoteEffects[acMessage.TargetId] = std::pair(0, acMessage); return; }