diff options
Diffstat (limited to 'frontend/Player.cpp')
-rw-r--r-- | frontend/Player.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/Player.cpp b/frontend/Player.cpp index 85c4fff..fdd2dc3 100644 --- a/frontend/Player.cpp +++ b/frontend/Player.cpp @@ -1,6 +1,8 @@ +#include "GameData.h" #include "strings.h" #include "Player.h" +#include "backend/WeaponObject.h" #include "backend/Dungeon.h" using namespace std; @@ -10,6 +12,7 @@ Player::Player(Dungeon & dungeon) : location(*dungeon.get_start_location()) { cmdset_default(); + this->weapon = unique_ptr<WeaponObject>(static_cast<WeaponObject *>(GameData::get_instance().create_object("Dolk"))); } void Player::cmdset_default() { |