Fixed bad serialization of float types

The value was written twice if it couldn't be reduced to a single precision value
This commit is contained in:
Leonard2 2016-07-08 18:39:18 +02:00 committed by Christoph Oelckers
parent af53f5a825
commit bbdc64a955

View file

@ -1272,6 +1272,7 @@ void PFloat::WriteValue(FArchive &ar, const void *addr) const
{ {
ar.WriteByte(VAL_Float64); ar.WriteByte(VAL_Float64);
ar << doubleprecision; ar << doubleprecision;
return;
} }
} }
else else