diff --git a/backends/frotz/main.cpp b/backends/frotz/main.cpp index 2fb06551..7507f3b6 100644 --- a/backends/frotz/main.cpp +++ b/backends/frotz/main.cpp @@ -214,7 +214,7 @@ class FrotzNetworkPlugin : public NetworkPlugin { directory_iterator end_itr; for (directory_iterator itr(p); itr != end_itr; ++itr) { if (extension(itr->path()) == ".z5") { - games.push_back(itr->path().leaf().string()); + games.push_back(itr->path().leaf()); } } return games;