From 923e7bf9c9581b8ee2d14592053edf7f14d28ec8 Mon Sep 17 00:00:00 2001 From: Martijn Buijs Date: Fri, 12 Jun 2020 09:40:56 +0200 Subject: [PATCH] Don't overwrite the loaded filename when opening includes --- libstage/worldfile.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libstage/worldfile.cc b/libstage/worldfile.cc index 2da829454..ed744834d 100644 --- a/libstage/worldfile.cc +++ b/libstage/worldfile.cc @@ -98,8 +98,7 @@ FILE *Worldfile::FileOpen(const std::string &filename, const char *method) assert(strlen(fullpath) + 1 < PATH_MAX); fp = fopen(fullpath, method); if (fp) { - this->filename = std::string(fullpath); - PRINT_DEBUG1("Loading: %s", filename.c_str()); + PRINT_DEBUG1("Loading: %s", fullpath); free(tmp); return fp; }