Skip to content

Commit

Permalink
Reorder PanoramaUiPanelImpl fields for a more efficient memory layout
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed May 31, 2024
1 parent 777cc5b commit 9048771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/GameClasses/Implementation/PanoramaUiPanelImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ struct PanoramaUiPanelImpl {
, getAttributeString{panoramaUiPanelPatterns.getAttributeString()}
, setAttributeString{panoramaUiPanelPatterns.setAttributeString()}
, childPanels{panoramaUiPanelPatterns.childPanelsVectorOffset()}
, classes{panoramaUiPanelPatterns.classesVectorOffset()}
, panelStyle{panoramaUiPanelPatterns.panelStyleOffset()}
, parentWindowOffset{panoramaUiPanelPatterns.parentWindowOffset()}
, offsetToPanelId{panoramaUiPanelPatterns.offsetToPanelId()}
, classes{panoramaUiPanelPatterns.classesVectorOffset()}
, offsetToPanelFlags{panoramaUiPanelPatterns.offsetToPanelFlags()}
{
}
Expand All @@ -31,9 +31,9 @@ struct PanoramaUiPanelImpl {
Offset<cs2::CUIPanel::setAttributeString> setAttributeString;

ChildPanelsVectorOffset childPanels;
PanelClassesVectorOffset classes;
PanelStyleOffset panelStyle;
ParentWindowOffset parentWindowOffset;
OffsetToPanelId offsetToPanelId;
PanelClassesVectorOffset classes;
OffsetToPanelFlags offsetToPanelFlags;
};

0 comments on commit 9048771

Please sign in to comment.