diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-20 19:10:51 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-20 19:10:51 +0200 |
commit | 48ad062a28fe0545e2e09a0e2c4f899db46bd80f (patch) | |
tree | 366f9c4e79bb7eb130c528b1df3ef46ac0075bb1 | |
parent | 0f1afafbb6d6f175c3ced248923a77b1c6071651 (diff) |
Initialize trace_t's ent and tile to nullptr.
-rw-r--r-- | src/common.hpp | 4 |
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 |