summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-03-30 17:37:30 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-03-30 17:37:30 +0200
commite267f6c8e567da53f12140b33d663afacf499277 (patch)
tree44b52a73078b7f9310978708b6cb75c2f6d66ff9 /src
parent6966908022e36df9fb4c5e2233603a6fef18e97d (diff)
Initialize game::state_t's time.
Diffstat (limited to 'src')
-rw-r--r--src/common.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.hpp b/src/common.hpp
index 8c2f21b..b4c16c6 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -258,7 +258,7 @@ namespace game {
std::unordered_set<entity_t*> awake_entities;
std::unordered_set<unit_t*> selected_units;
- ntime_t time; // game time
+ ntime_t time = 0; // game time
double now, dt; // FIXME: refactor the code, use ntime_t everywhere
// frame timing data (game runs at a different frequency than the renderer)