Skip to content

Commit

Permalink
Revert change for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
saihv committed Oct 7, 2020
1 parent ed31286 commit e41becf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Unreal/Plugins/AirSim/Source/SimMode/SimModeBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void ASimModeBase::initializeTimeOfDay()
sky_sphere_ = sky_spheres[0];
static const FName sun_prop_name(TEXT("Directional light actor"));
auto* p = sky_sphere_class_->FindPropertyByName(sun_prop_name);
FObjectProperty* sun_prop = Cast<UObjectProperty>(p);
UObjectProperty* sun_prop = Cast<UObjectProperty>(p);
UObject* sun_obj = sun_prop->GetObjectPropertyValue_InContainer(sky_sphere_);
sun_ = Cast<ADirectionalLight>(sun_obj);
if (sun_)
Expand Down

0 comments on commit e41becf

Please sign in to comment.