Fixed speed limit component wrong check.
This commit is contained in:
parent
46fad26755
commit
669c058211
|
@ -83,7 +83,7 @@ void USpeedLimitComponent::OnOverlapBeginSpeedLimitBox(UPrimitiveComponent *Over
|
|||
const FHitResult &SweepResult)
|
||||
{
|
||||
ACarlaWheeledVehicle* Vehicle = Cast<ACarlaWheeledVehicle>(OtherActor);
|
||||
if (OtherActor)
|
||||
if (Vehicle)
|
||||
{
|
||||
auto Controller = Cast<AWheeledVehicleAIController>(Vehicle->GetController());
|
||||
if (Controller)
|
||||
|
|
Loading…
Reference in New Issue