qbsp: fix dangling std::string access through string_view

This commit is contained in:
Eric Wasylishen 2022-06-14 21:33:48 -06:00 committed by Jonathan
parent a746506d6a
commit 8c90c5c3dc
1 changed files with 1 additions and 1 deletions

View File

@ -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");