diff options
Diffstat (limited to 'frontend/cmd/get.cpp')
-rw-r--r-- | frontend/cmd/get.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/cmd/get.cpp b/frontend/cmd/get.cpp index 78c6ec1..12c3353 100644 --- a/frontend/cmd/get.cpp +++ b/frontend/cmd/get.cpp @@ -11,7 +11,7 @@ FollowupAction Player::cmd_get(string & target_name) { unique_ptr<Object> target = nullptr; for (Object * object : this->location.get_objects()) { if (object->get_hidden() == true) continue; - if (str_lower(object->get_name()) != str_lower(target_name)) continue; + if (str_lower(object->get_name().c_str()) != str_lower(target_name)) continue; target = unique_ptr<Object>(object); this->location.remove_object(object); break; @@ -31,7 +31,7 @@ FollowupAction Player::cmd_get(string & target_name) { } // other objects go in the inventory - lprtf("Je voegt %s toe aan je bezit.\n", target->get_displayname()); + lprtf("Je voegt %s toe aan je bezit.\n", target->get_displayname().c_str()); this->inventory.push_back(std::move(target)); return FollowupAction::NONE; } |