Skip to content

Commit 7ca4dbb

Browse files
committed
feat(ecs): pass expected params
1 parent b817133 commit 7ca4dbb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/src/dungeon.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "dungeon.hpp"
22

33
#include <memory>
4-
#include <tuple>
54
#include <core/math.hpp>
65

76
#include "rectangular_room.hpp"

app/src/engine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ namespace cpprl {
134134
// when trying to load. Can't even inspect the file in the browser.
135135
// gets as far as setting the dungeon seed and then blows up.
136136
serializer.deserialize(*world_);
137-
ai_system_->set_world(world_.get());
138-
ai_system_->set_player(world_->get_player());
137+
ai_system_->set_world(*world_.get());
138+
ai_system_->set_player(world_->get_player()->get_id());
139139

140140
engine_state_->on_exit();
141141
engine_state_ = std::make_unique<InGameState>(*world_);

0 commit comments

Comments
 (0)