From b7c822d20870b2be74eea07e725fc9ab7055774a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 23 Sep 2016 23:47:25 +0200 Subject: [PATCH] - fixed secplane_t serializer. It passed incorrect defaults to the sub-serializers and calculated negiC wrong. --- src/p_saveg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index 80c55fecc..465760137 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -201,13 +201,13 @@ FSerializer &Serialize(FSerializer &arc, const char *key, secplane_t &p, secplan if (arc.BeginObject(key)) { - arc("normal", p.normal, def->normal) - ("d", p.D, def->D) - .EndObject(); + Serialize(arc, "normal", p.normal, def ? &def->normal : nullptr); + Serialize(arc, "d", p.D, def ? &def->D : nullptr); + arc.EndObject(); if (arc.isReading() && p.normal.Z != 0) { - p.negiC = 1 / p.normal.Z; + p.negiC = -1 / p.normal.Z; } } return arc;