aboutsummaryrefslogtreecommitdiff
path: root/frontend/cmd/cheat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/cmd/cheat.cpp')
-rw-r--r--frontend/cmd/cheat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/cmd/cheat.cpp b/frontend/cmd/cheat.cpp
index 981bca1..59fb13c 100644
--- a/frontend/cmd/cheat.cpp
+++ b/frontend/cmd/cheat.cpp
@@ -12,7 +12,7 @@ constexpr const char * cmd_give_key = "Manifesteer";
void GameController::cmd_give(string & item_name) {
Player & player = this->dungeon->get_player();
GameData & gamedata = GameData::get_instance();
- auto object = unique_ptr<Object>(gamedata.create_object(item_name));
+ auto object = gamedata.create_object(item_name);
lprtf("Object aangemaakt: %s\n", object->get_displayname().c_str());
player.inventory.push_back(object.release());
}