game: fix light pointer

This commit is contained in:
Thr0lu5 2022-08-08 19:43:20 -03:00
parent df53984294
commit f12acf0836

View File

@ -2260,7 +2260,7 @@ void CryptoCityUrho3D::SetShadowDistance(TBID distance)
}
else if (distance != TBID("shadowdist-low")) printf("Invalid Shadow distance\n");
Light* sun = mainLightNode->GetComponent<Light>();
Light *sun = mainLightNode->GetComponent<Light>();
if (sun) sun->SetShadowCascade(CascadeParameters(25.0f, near_shadow, far_shadow, 0.0f, 0.8f));
}