diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaBlueprintRegistry.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaBlueprintRegistry.cpp index fb660a59acc..0ed75377e51 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaBlueprintRegistry.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaBlueprintRegistry.cpp @@ -33,7 +33,7 @@ static FString PropSizeTypeToString(EPropSize PropSizeType) { return FString("unknown"); } - return ptr->GetNameStringByIndex(static_cast(PropSizeType)); + return ptr->GetNameStringByValue(static_cast(PropSizeType)); } static EPropSize StringToPropSizeType(FString PropSize) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/CityMapMeshTag.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/CityMapMeshTag.cpp index 1ee7916fb71..7c20af1e91d 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/CityMapMeshTag.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/CityMapMeshTag.cpp @@ -26,5 +26,5 @@ FString CityMapMeshTag::ToString(ECityMapMeshTag Tag) const UEnum* ptr = FindObject(ANY_PACKAGE, TEXT("ECityMapMeshTag"), true); if(!ptr) return FString("Invalid"); - return ptr->GetNameStringByIndex(static_cast(Tag)); + return ptr->GetNameStringByValue(static_cast(Tag)); } diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Settings/CarlaSettings.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Settings/CarlaSettings.cpp index 244bd772bc0..23e0ff11286 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Settings/CarlaSettings.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Settings/CarlaSettings.cpp @@ -57,7 +57,7 @@ FString QualityLevelToString(EQualityLevel QualitySettingsLevel) { return FString("Invalid"); } - return ptr->GetNameStringByIndex(static_cast(QualitySettingsLevel)); + return ptr->GetNameStringByValue(static_cast(QualitySettingsLevel)); } static void LoadSettingsFromConfig(