Skip to content

Commit 30ccef0

Browse files
committed
Fixed UE4.27 compilation errors
1 parent 88945cd commit 30ccef0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Source/ProceduralDungeon/Private/DungeonGeneratorBase.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ bool ADungeonGeneratorBase::AddRoomToDungeon(URoom* const& Room, const TArray<in
183183

184184
bool bConnected = false;
185185
// Connect the doors if provided, otherwise try to connect all possible doors
186-
if (DoorsToConnect.IsEmpty())
186+
if (DoorsToConnect.Num() <= 0)
187187
{
188188
bConnected = Room->TryConnectToExistingDoors(Graph->GetAllRooms());
189189
}

Source/ProceduralDungeon/Private/RoomData.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ bool URoomData::HasAllDoorOfType(const TArray<UDoorType*>& DoorTypes) const
8686
{
8787
AllDoorTypes.Remove(Door.Type);
8888
}
89-
return AllDoorTypes.IsEmpty();
89+
return AllDoorTypes.Num() <= 0;
9090
}
9191

9292
bool URoomData::HasCustomData(TSubclassOf<URoomCustomData> CustomDataClass) const

Source/ProceduralDungeon/Private/Tests/Classes/RoomCustomDataChildClasses.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
#include "RoomCustomData.h"
2626
#include "RoomCustomDataChildClasses.generated.h"
2727

28-
UCLASS(NotBlueprintable, NotBlueprintType, Hidden, meta = (HiddenNode))
28+
UCLASS(NotBlueprintable, NotBlueprintType, HideDropdown, meta = (HiddenNode))
2929
class UCustomDataA : public URoomCustomData
3030
{
3131
GENERATED_BODY()
3232
};
3333

34-
UCLASS(NotBlueprintable, NotBlueprintType, Hidden, meta = (HiddenNode))
34+
UCLASS(NotBlueprintable, NotBlueprintType, HideDropdown, meta = (HiddenNode))
3535
class UCustomDataB : public URoomCustomData
3636
{
3737
GENERATED_BODY()
3838
};
3939

40-
UCLASS(NotBlueprintable, NotBlueprintType, Hidden, meta = (HiddenNode))
40+
UCLASS(NotBlueprintable, NotBlueprintType, HideDropdown, meta = (HiddenNode))
4141
class UCustomDataC : public URoomCustomData
4242
{
4343
GENERATED_BODY()

0 commit comments

Comments
 (0)