Skip to content

Commit efe0d2f

Browse files
committed
Possible fix for recently introduced crash
1 parent 4b20544 commit efe0d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaBrowserDefs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ int CLuaBrowserDefs::RequestBrowserDomains(lua_State* luaVM)
168168
if (!argStream.HasErrors())
169169
{
170170
// Remove empty URLs
171-
pages.erase(std::remove_if(pages.begin(), pages.end(), [](const auto& url) { return url.empty(); }));
171+
pages.erase(std::remove_if(pages.begin(), pages.end(), [](const auto& url) { return url.empty(); }), pages.end());
172172

173173
// Convert to domains if we got a list of URLs
174174
if (bIsURL)

0 commit comments

Comments
 (0)