Commit 6448c6f (https://github.com/EpicGames/UnrealEngine/commit/6448c6f6d1de1e9fac9614248e06ba06b837814d) introduced inconsistent behavior for TFieldPath and nullptr comparison, depending on constness of the TFieldPath reference.
Run the following code within unreal, notice that constTest and nonConstTest have different results:
TFieldPath<FProperty> tempVar
{ TEXT("TempStr") };
bool constTest = (const TFieldPath<FProperty>&)tempVar == nullptr;
bool nonConstTest = tempVar == nullptr;
ensure(constTest == nonConstTest);
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-254385 in the post.
1 |
Component | UE - CoreTech - UObject |
---|---|
Affects Versions | 5.5 |
Target Fix | 5.6 |
Created | Mar 7, 2025 |
---|---|
Updated | Mar 13, 2025 |