diff --git a/backends/frotz/main.cpp b/backends/frotz/main.cpp index dcd67a17..c626becc 100644 --- a/backends/frotz/main.cpp +++ b/backends/frotz/main.cpp @@ -235,10 +235,10 @@ class FrotzNetworkPlugin : public NetworkPlugin { directory_iterator end_itr; for (directory_iterator itr(p); itr != end_itr; ++itr) { if (extension(itr->path()) == ".z5") { -#if BOOST_FILESYSTEM_VERSION == 2 - games.push_back(itr->path().leaf()); -#else +#if BOOST_FILESYSTEM_VERSION == 3 games.push_back(itr->path().filename().string()); +#else + games.push_back(itr->path().leaf()); #endif } }