summaryrefslogtreecommitdiff
path: root/game/gamestate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/gamestate.cpp')
-rw-r--r--game/gamestate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/gamestate.cpp b/game/gamestate.cpp
index fcd4248..910e8a7 100644
--- a/game/gamestate.cpp
+++ b/game/gamestate.cpp
@@ -1,4 +1,5 @@
#include "gamestate.h"
+#include "environment.h"
#include <cassert>
GameState * gameState {nullptr};
@@ -7,6 +8,8 @@ GameState::GameState()
{
assert(!gameState);
gameState = this;
+
+ environment = world.create<Environment>();
}
GameState::~GameState()