qbsp: fix dangling std::string access through string_view

This commit is contained in:
Eric Wasylishen 2022-06-14 21:33:48 -06:00
parent 0c24e7bbd0
commit f5ed79c936
1 changed files with 1 additions and 1 deletions

View File

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