aboutsummaryrefslogtreecommitdiff
path: root/frontend/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/Player.cpp')
-rw-r--r--frontend/Player.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/frontend/Player.cpp b/frontend/Player.cpp
index adf4e44..fddea95 100644
--- a/frontend/Player.cpp
+++ b/frontend/Player.cpp
@@ -2,6 +2,8 @@
#include "Player.h"
#include "print.h"
+#include "backend/Dungeon.h"
+
using namespace std;
static string argv_pop(vector<string> & argv) {
@@ -10,8 +12,10 @@ static string argv_pop(vector<string> & argv) {
return el;
}
-Player::Player(Dungeon & dungeon) : dungeon(dungeon) {
- this->cmds.clear();
+Player::Player(Dungeon & dungeon) :
+ dungeon(dungeon),
+ location(*dungeon.get_start_location())
+ {
cmdset_default();
}