We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b817133 commit 7ca4dbbCopy full SHA for 7ca4dbb
app/src/dungeon.cpp
@@ -1,7 +1,6 @@
1
#include "dungeon.hpp"
2
3
#include <memory>
4
-#include <tuple>
5
#include <core/math.hpp>
6
7
#include "rectangular_room.hpp"
app/src/engine.cpp
@@ -134,8 +134,8 @@ namespace cpprl {
134
// when trying to load. Can't even inspect the file in the browser.
135
// gets as far as setting the dungeon seed and then blows up.
136
serializer.deserialize(*world_);
137
- ai_system_->set_world(world_.get());
138
- ai_system_->set_player(world_->get_player());
+ ai_system_->set_world(*world_.get());
+ ai_system_->set_player(world_->get_player()->get_id());
139
140
engine_state_->on_exit();
141
engine_state_ = std::make_unique<InGameState>(*world_);
0 commit comments