Casting errors fixed

This commit is contained in:
aollero 2022-03-09 15:42:51 +01:00 committed by bernat
parent f2f71ba4cd
commit 737c9991fc
2 changed files with 6 additions and 1 deletions

View File

@ -24,9 +24,14 @@ FString UProceduralWaterManager::StartWaterGeneration(const FProceduralRiversMet
{
FString errorMsg="";
if(metaInfo.WaterGenerationType == EWaterGenerationType::RIVERS)
{
if(RiverBlueprintClass)
errorMsg = RiverGeneration(metaInfo);
else
errorMsg = "ERROR: River class not assigned";
}
else if(metaInfo.WaterGenerationType == EWaterGenerationType::LAKE)
{