diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
commit | 6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (patch) | |
tree | c2505409c68d554b1e776cdb0c8104af54d375bf /frontend/cmd/get.cpp | |
parent | c1d43cddee94dd370078f755d33147c9a8181852 (diff) |
create backend string class
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; } |