修复空配置错误
This commit is contained in:
parent
bc0d889f7d
commit
a1c71b57b4
BIN
ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish-0001.dll
Normal file
BIN
ProjectFish/Binaries/Win64/UnrealEditor-ProjectFish-0001.dll
Normal file
Binary file not shown.
Binary file not shown.
@ -2,7 +2,7 @@
|
||||
"BuildId": "37670630",
|
||||
"Modules":
|
||||
{
|
||||
"ProjectFish": "UnrealEditor-ProjectFish.dll",
|
||||
"ProjectFishEditor": "UnrealEditor-ProjectFishEditor.dll"
|
||||
"ProjectFish": "UnrealEditor-ProjectFish-0001.dll",
|
||||
"ProjectFishEditor": "UnrealEditor-ProjectFishEditor-0001.dll"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@ -6,6 +6,7 @@
|
||||
#include "EngineUtils.h"
|
||||
#include "ProjectFish/Definations.h"
|
||||
#include "ProjectFish/PawnWithSkill.h"
|
||||
#include "ProjectFish/DataAsset/BagConfigAsset.h"
|
||||
#include "ProjectFish/Subsystem/FishingRodConfigSubsystem.h"
|
||||
|
||||
|
||||
@ -75,6 +76,7 @@ void UFishingRodComponent::BeginPlay()
|
||||
//更新鱼竿槽位配置
|
||||
UWorld* World = GetWorld();
|
||||
UGameInstance* GameInstance = World->GetGameInstance();
|
||||
if (IsValid( GameInstance->GetSubsystem<UFishingRodConfigSubsystem>()->GetFishingRodInventory()))
|
||||
FishRodData.BagConfig = GameInstance->GetSubsystem<UFishingRodConfigSubsystem>()->GetFishingRodInventory();
|
||||
// ...
|
||||
Super::BeginPlay();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user