From 546aa09d8de603b051c97d271be1021301144378 Mon Sep 17 00:00:00 2001 From: Steven Peters Date: Tue, 11 Dec 2018 15:09:56 -0800 Subject: [PATCH 1/2] tiny_obj_loader.h: initialize pad_ in constructor --- tiny_obj_loader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index 778832e..00dfe0b 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -435,7 +435,7 @@ struct face_t { int pad_; std::vector vertex_indices; // face vertex indices. - face_t() : smoothing_group_id(0) {} + face_t() : pad_(0), smoothing_group_id(0) {} }; struct line_t { From df3bb6f8e84b317eb49ebd3a87077605ee2a3f21 Mon Sep 17 00:00:00 2001 From: Steven Peters Date: Thu, 13 Dec 2018 10:49:18 -0800 Subject: [PATCH 2/2] tiny_obj_loader.h: fix order of variables --- tiny_obj_loader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index 00dfe0b..8b61f05 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -435,7 +435,7 @@ struct face_t { int pad_; std::vector vertex_indices; // face vertex indices. - face_t() : pad_(0), smoothing_group_id(0) {} + face_t() : smoothing_group_id(0), pad_(0) {} }; struct line_t {