Fix crash selecting objects in the level editor

#codereview andrew.rodham

[CL 2520114 by Matt Kuhlenschmidt in Main branch]
This commit is contained in:
Matt Kuhlenschmidt
2015-04-21 17:39:55 -04:00
committed by matt.kuhlenschmidt@epicgames.com
parent d00c1a9ee2
commit 8489620e8d
@@ -579,11 +579,11 @@ void FComponentTransformDetails::CacheCommonLocationUnits()
{
LargestValue = CachedLocation.X.GetValue();
}
if (CachedLocation.X.IsSet() && CachedLocation.Y.GetValue() > LargestValue)
if (CachedLocation.Y.IsSet() && CachedLocation.Y.GetValue() > LargestValue)
{
LargestValue = CachedLocation.Y.GetValue();
}
if (CachedLocation.X.IsSet() && CachedLocation.Z.GetValue() > LargestValue)
if (CachedLocation.Z.IsSet() && CachedLocation.Z.GetValue() > LargestValue)
{
LargestValue = CachedLocation.Z.GetValue();
}