3D Navigation Plugin

i ran into an issue with packaging a game using uesvon and i had to do this:


void UAITask_SVONMoveTo::PerformMove()
{
// Prepare the move first (check for early out)
CheckPathPreConditions();

ResetObservers();
ResetTimers();
ResetPaths();




if (myResult.Code == ESVONPathfindingRequestResult::AlreadyAtGoal)
{
MoveRequestID = myResult.MoveId;
OnRequestFinished(myResult.MoveId, FPathFollowingResult(EPathFollowingResult::Success, FPathFollowingResultFlags::AlreadyAtGoal));
return;
}

// If we're ready to path, then request the path
if (myResult.Code == ESVONPathfindingRequestResult::ReadyToPath)
{

myUseAsyncPathfinding ? RequestPathAsync() : RequestPathSynchronous();

switch (myResult.Code)
{
case ESVONPathfindingRequestResult::Failed:
FinishMoveTask(EPathFollowingResult::Invalid);
break;
case ESVONPathfindingRequestResult::Success: // Synchronous pathfinding
MoveRequestID = myResult.MoveId;
//if (IsFinished())
// UE_VLOG(GetGameplayTasksComponent(), LogGameplayTasks, Error, TEXT("%s> re-Activating Finished task!"), *GetName());
RequestMove(); // Start the move
break;
case ESVONPathfindingRequestResult::Deferred: // Async...we're waiting on the task to return
MoveRequestID = myResult.MoveId;
myAsyncTaskComplete = false;
break;
default:
checkNoEntry();
break;
}

}
}

for some reason


if (IsFinished())

was giving me an error saying it was an empty control statement.

here’s the error i got:


ParallelExecutor.ExecuteActions:   [1/2] Module.UESVON.cpp
ParallelExecutor.ExecuteActions:   C:\unreal\game
eptunegl 4.21.2 SSD\Plugins\uesvon-master\Source\UESVON\Private\AITask_SVONMoveTo.cpp(193): error C4390: ';': empty controlled statement found; is this the intent?
Log.WriteException: ==============================================================================
Log.WriteException: ERROR: UBT ERROR: Failed to produce item: C:\unreal\game
eptunegl 4.21.2 SSD\Binaries\Win64\NeptuneGL-Win64-Shipping.exe
Log.WriteException:        (see C:\unreal\src\UnrealEngine-4.21.2-release\Engine\Programs\AutomationTool\Saved\Logs\UBT-NeptuneGL-Win64-Shipping.txt for full exception trace)

once i commented out the lines like above it worked and i was able to package the game.