]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/map.cpp
Fix BSP import error when q3map2_type is missing from gamepack xml
[xonotic/netradiant.git] / radiant / map.cpp
index adf69f46d974fac354bf0e3a097ae90775ac7596..bedfe813f32837ff34af45bf4041eca14bfdde4e 100644 (file)
@@ -1641,7 +1641,7 @@ bool Map_ImportFile(const char *filename)
 
     tryDecompile:
 
-    const char *type = GlobalRadiant().getRequiredGameDescriptionKeyValue("q3map2_type");
+    const char *type = GlobalRadiant().getGameDescriptionKeyValue("q3map2_type");
     int n = string_length(path_get_extension(filename));
     if (n && (extension_equal(path_get_extension(filename), "bsp") ||
               extension_equal(path_get_extension(filename), "map"))) {