Skip to content

Commit

Permalink
Add noinline attribute to PanoramaUiEngine::deletePanelByHandle() method
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Jan 25, 2025
1 parent 8c9598d commit 72d18f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/GameClasses/PanoramaUiEngine.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <CS2/Panorama/CUIEngine.h>
#include <Platform/Macros/FunctionAttributes.h>
#include <Platform/Macros/IsPlatform.h>
#include <MemoryPatterns/PatternTypes/UiEnginePatternTypes.h>

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 72d18f3

Please sign in to comment.