Update Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Actor/ActorBlueprintFunctionLibrary.cpp

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>
This commit is contained in:
Blyron 2024-04-11 14:53:13 +02:00 committed by Xavier Solé Nogués
parent b887208396
commit 6ed4056906
1 changed files with 1 additions and 1 deletions

View File

@ -1523,7 +1523,7 @@ FColor UActorBlueprintFunctionLibrary::RetrieveActorAttributeToColor(
// editor crashing while people are testing new actor definitions.
#if WITH_EDITOR
# define CARLA_ABFL_CHECK_ACTOR(ActorPtr) \
if ((ActorPtr == nullptr) || IsValid(ActorPtr)) \
if (!IsValid(ActorPtr)) \
{ \
UE_LOG(LogCarla, Error, TEXT("Cannot set empty actor!")); \
return; \