Description

Const version of function is not used elsewhere in the engine so it usually gets skipped when compiling.

Produces the following error when compiling: 

UnrealEngine\Engine\Source\Runtime\NavigationSystem\Public\NavigationData.h(313): error C2440: 'static_cast': cannot convert from 'const FNavigationPath *' to 'PathClass *'

Found by UDN user who made a PR for issue

 

Steps to Reproduce

Add code to call following lines and compile (attempt anyway):

const FNavigationPath* TestNavPath = nullptr;
const FNavMeshPath* TestNavMeshPath = TestNavPath->CastPath<FNavMeshPath>();

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-138341 in the post.

0
Login to Vote

Fixed
ComponentUE - AI - Navigation
Affects Versions4.27.1
Target Fix5.0
Fix Commit13835083
CreatedJan 5, 2022
ResolvedJan 7, 2022
UpdatedFeb 18, 2022
View Jira Issue