From 48ad062a28fe0545e2e09a0e2c4f899db46bd80f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 20 Apr 2018 19:10:51 +0200 Subject: Initialize trace_t's ent and tile to nullptr. --- src/common.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common.hpp') diff --git a/src/common.hpp b/src/common.hpp index b0d1674..4ce22bb 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -161,8 +161,8 @@ namespace world { v2f_t end; float frac; - entity_t *ent; - tile_t *tile; + entity_t *ent = nullptr; + tile_t *tile = nullptr; } trace_t; // for testing -- cgit