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