diff --git a/qbsp/test_qbsp.cc b/qbsp/test_qbsp.cc index 5e4b50db..2a79d949 100644 --- a/qbsp/test_qbsp.cc +++ b/qbsp/test_qbsp.cc @@ -47,6 +47,8 @@ static mapentity_t LoadMap(const char *map) return worldspawn; } +#include + static mbsp_t LoadTestmap(const std::filesystem::path &name, std::vector extra_args = {}) { auto map_path = std::filesystem::path(testmaps_dir) / name; @@ -91,6 +93,9 @@ static mbsp_t LoadTestmap(const std::filesystem::path &name, std::vector(bspdata.bsp), fs::path(options.bsp_path).replace_extension(".bsp.json")); + return std::get(bspdata.bsp); }