diff options
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 2ee53f8df8..2d0a20f7e4 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -703,6 +703,11 @@ std::vector<player_save_info> find_saved_characters() #ifdef USE_TILE if (Options.tile_menu_icons) { + #ifndef LOAD_UNPACKAGE_CMD + std::string basename = + filename.substr(0, + filename.length() - strlen(".sav")); + #endif const std::string dollname = basename + ".tdl"; #ifdef LOAD_UNPACKAGE_CMD snprintf( cmd_buff, sizeof(cmd_buff), |