Fixing a stupid bug where it would crash because a fact wasn't in the world.

This commit is contained in:
Zed A. Shaw 2024-12-19 20:46:47 -05:00
parent 93f53d1714
commit 5a6494acf5
7 changed files with 11 additions and 6 deletions

View file

@ -24,7 +24,6 @@ namespace fs = std::filesystem;
*/
void configure_world(DinkyECS::World &world, Map &game_map) {
const auto &config = world.get_the<MapConfig>();
world.set_the<Debug>({});
// configure a player as a fact of the world
Player player{world.entity()};
world.set_the<Player>(player);