diff --git a/src/resourcefiles/resourcefile.cpp b/src/resourcefiles/resourcefile.cpp index 5f36bc68e..4960ce51b 100644 --- a/src/resourcefiles/resourcefile.cpp +++ b/src/resourcefiles/resourcefile.cpp @@ -151,7 +151,7 @@ void FResourceLump::CheckEmbedded() { // Checks for embedded archives const char *c = strstr(FullName, ".wad"); - if (c && strlen(c) == 4 && !strchr(Name, '/')) + if (c && strlen(c) == 4 && !strchr(FullName, '/')) { // Mark all embedded WADs Flags |= LUMPF_EMBEDDED;