From 8c90c5c3dc7f5e0ba59b35fafaa399183a56cbb7 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 14 Jun 2022 21:33:48 -0600 Subject: [PATCH] qbsp: fix dangling std::string access through string_view --- qbsp/qbsp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index 398a73c8..46385212 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -1140,7 +1140,7 @@ void EnsureTexturesLoaded() return; } - std::string_view wadstring = map.world_entity()->epairs.get("_wad"); + std::string wadstring = map.world_entity()->epairs.get("_wad"); if (wadstring.empty()) { wadstring = map.world_entity()->epairs.get("wad");