summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-20 19:10:51 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-20 19:10:51 +0200
commit48ad062a28fe0545e2e09a0e2c4f899db46bd80f (patch)
tree366f9c4e79bb7eb130c528b1df3ef46ac0075bb1
parent0f1afafbb6d6f175c3ced248923a77b1c6071651 (diff)
Initialize trace_t's ent and tile to nullptr.
-rw-r--r--src/common.hpp4
1 files changed, 2 insertions, 2 deletions
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