From 4c0ab7a739085a32688f34947c0b1812a31d92d7 Mon Sep 17 00:00:00 2001 From: aura Date: Wed, 11 Mar 2026 00:41:44 +0100 Subject: fix mem leaks, string convenience funcs --- src/game/world/bsp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/game') diff --git a/src/game/world/bsp.cpp b/src/game/world/bsp.cpp index c4928a3..c7d746b 100644 --- a/src/game/world/bsp.cpp +++ b/src/game/world/bsp.cpp @@ -163,7 +163,8 @@ LIST bsp_map_faces_from_walls( WORLD_MAP* map ) { }; } - BSP_FACE f{ .propid = w->propid }; + BSP_FACE f{}; + f.propid = w->propid; f.verts.push( vertices[2] ); f.verts.push( vertices[1] ); f.verts.push( vertices[0] ); @@ -209,8 +210,8 @@ LIST bsp_map_get_faces( WORLD_MAP* map ) { LIST walls = bsp_map_faces_from_walls( map ); LIST floors = bsp_map_faces_from_planes( map ); - ret.emplace_list( walls ); - ret.emplace_list( floors ); + ret.push_list( walls ); + ret.push_list( floors ); return ret; } -- cgit v1.2.3