Skip to content

Commit

Permalink
Merge branch '4.26'
Browse files Browse the repository at this point in the history
  • Loading branch information
goncasmage1 committed Apr 4, 2021
2 parents 1e9d06f + a31bf2b commit 5e2eec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/UINavigation/Private/UINavPCComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ EInputType UUINavPCComponent::GetKeyInputType(const FKey Key)

EInputType UUINavPCComponent::GetMenuActionInputType(const FString Action) const
{
for (const FKey Key : KeyMap[Action])
for (const FKey& Key : KeyMap[Action])
{
if (PC->WasInputKeyJustPressed(Key)) return GetKeyInputType(Key);
}
Expand Down Expand Up @@ -852,7 +852,7 @@ TArray<FString> UUINavPCComponent::FindActionByKey(const FKey ActionKey) const
KeyMap.GenerateKeyArray(Actions);
for (FString Action : Actions)
{
for (FKey Key : KeyMap[Action])
for (const FKey& Key : KeyMap[Action])
{
if (Key == ActionKey)
{
Expand Down

0 comments on commit 5e2eec9

Please sign in to comment.