From 360daea17228e736654c8bcd9df219a5d551e423 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 29 Jul 2022 22:41:57 -0400 Subject: [PATCH] fix test failure from map parsing --- tests/test_qbsp.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_qbsp.cc b/tests/test_qbsp.cc index 91a49133..521aae29 100644 --- a/tests/test_qbsp.cc +++ b/tests/test_qbsp.cc @@ -38,9 +38,14 @@ static mapentity_t LoadMap(const char *map) qbsp_options.target_version = &bspver_q1; qbsp_options.target_game = qbsp_options.target_version->game; + ::map.entities.clear(); + parser_t parser(map); mapentity_t worldspawn; + + mapentity_t &entity = ::map.entities.emplace_back(); + // FIXME: adds the brush to the global map... Q_assert(ParseEntity(parser, &worldspawn));