diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorRegistry.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorRegistry.cpp index c064cf1b7..de125ac12 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorRegistry.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/ActorRegistry.cpp @@ -18,7 +18,8 @@ static FString GetRelevantTagAsString(const AActor &Actor) { if ((Tag != ECityObjectLabel::None) && (Tag != ECityObjectLabel::Other)) { - return ATagger::GetTagAsString(Tag).ToLower(); + auto Str = ATagger::GetTagAsString(Tag).ToLower(); + return (Str.EndsWith(TEXT("s")) ? Str.LeftChop(1) : Str); } } return TEXT("unknown"); diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/Tagger.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/Tagger.cpp index e4ae70d02..6c969bbbf 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/Tagger.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/Tagger.cpp @@ -114,7 +114,7 @@ void ATagger::GetTagsOfTaggedActor(const AActor &Actor, TArray FString ATagger::GetTagAsString(const ECityObjectLabel Label) { switch (Label) { -#define CARLA_GET_LABEL_STR(lbl) case ECityObjectLabel:: lbl : return #lbl; +#define CARLA_GET_LABEL_STR(lbl) case ECityObjectLabel:: lbl : return TEXT(#lbl); default: CARLA_GET_LABEL_STR(None) CARLA_GET_LABEL_STR(Buildings)