Fixing a stupid bug where it would crash because a fact wasn't in the world.
This commit is contained in:
parent
93f53d1714
commit
5a6494acf5
7 changed files with 11 additions and 6 deletions
|
@ -55,6 +55,7 @@ TEST_CASE("can render a text", "[render]") {
|
|||
builder.generate();
|
||||
|
||||
Player player{world.entity()};
|
||||
world.set_the<Debug>({});
|
||||
world.set_the<Player>(player);
|
||||
world.set<Tile>(player.entity, {config.PLAYER_TILE});
|
||||
world.set<LightSource>(player.entity, {6,1});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue