Skip to content

Commit 07bfc89

Browse files
committed
Updated references after refactoring
1 parent b7e9e85 commit 07bfc89

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

Config/BaseProgressionSystem.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ DataAssetInternal=/ProgressionSystem/DataAssets/DA_ProgressionSystem.DA_Progress
33

44
; Increment save file version extennsion to force users run empty save
55
; Increment whenever a major changes done with safe file structure
6-
SaveFileVersionExtensionInternal=4
6+
SaveFileVersionExtensionInternal=5
0 Bytes
Binary file not shown.
-635 Bytes
Binary file not shown.

Source/ProgressionSystemRuntime/Private/Components/PSSpotComponent.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,17 @@ void UPSSpotComponent::TryRestorePlayerSkin()
8888

8989
UMySkeletalMeshComponent& MeshComp = GetMeshChecked();
9090
const int32 CurrentSkinIndex = MeshComp.GetAppliedSkinIndex();
91-
bool bIsCurrentSkinAvailable = MeshComp.IsSkinAvailable(CurrentSkinIndex);
9291

9392
// Current skins is available no need to switch to last avaialble
94-
if (bIsCurrentSkinAvailable)
93+
if (MeshComp.IsSkinAvailable(CurrentSkinIndex))
9594
{
9695
return;
9796
}
9897

9998
// find last unlocked skin
10099
for (int32 Count = CurrentSkinIndex; Count >= 0; Count--)
101100
{
102-
const bool bIsLastUnlockedFound = Count > 0 ? MeshComp.IsSkinAvailable(Count) : bIsCurrentSkinAvailable = true;
103-
104-
if (bIsLastUnlockedFound)
101+
if (Count == 0 || MeshComp.IsSkinAvailable(Count))
105102
{
106103
MeshComp.ApplySkinByIndex(Count);
107104

0 commit comments

Comments
 (0)