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

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