From 418aa45a1b24159223715b6032946a1975937d49 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 28 Jun 2016 16:47:11 +0100 Subject: [PATCH] Added initializers --- src/osgPlugins/txp/trpage_warchive.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/txp/trpage_warchive.cpp b/src/osgPlugins/txp/trpage_warchive.cpp index e39b04da4..db7e5b49b 100644 --- a/src/osgPlugins/txp/trpage_warchive.cpp +++ b/src/osgPlugins/txp/trpage_warchive.cpp @@ -941,6 +941,9 @@ trpgwGeomHelper::trpgwGeomHelper() { buf = NULL; mode = trpgGeometry::Triangles; + dataType = 0; + zmin = 1e12; + zmax = -1e12; } trpgwGeomHelper::~trpgwGeomHelper() { @@ -960,7 +963,7 @@ void trpgwGeomHelper::init(trpgWriteBuffer *ibuf,int dtype) dataType = dtype; zmin = 1e12; zmax = -1e12; - mode = 0; + mode = trpgGeometry::Triangles; } // Reset back to a clean state (except for the buffer) void trpgwGeomHelper::Reset()