From 72d18f3588fef0fb21809e5da0d605a933323b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Krupi=C5=84ski?= Date: Sat, 25 Jan 2025 21:11:21 +0100 Subject: [PATCH] Add noinline attribute to PanoramaUiEngine::deletePanelByHandle() method --- Source/GameClasses/PanoramaUiEngine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/GameClasses/PanoramaUiEngine.h b/Source/GameClasses/PanoramaUiEngine.h index 6a17317450f..a3b40dc48bf 100644 --- a/Source/GameClasses/PanoramaUiEngine.h +++ b/Source/GameClasses/PanoramaUiEngine.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include @@ -45,7 +46,7 @@ class PanoramaUiEngine { return handle; } - void deletePanelByHandle(cs2::PanelHandle handle) noexcept + [[NOINLINE]] void deletePanelByHandle(cs2::PanelHandle handle) noexcept { if (handle.isValid()) onDeletePanel(handle);