diff options
| author | aura <nw@moneybot.cc> | 2026-03-11 00:41:44 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-03-11 00:41:44 +0100 |
| commit | 4c0ab7a739085a32688f34947c0b1812a31d92d7 (patch) | |
| tree | 3b32fa706a61438160433c51585c8d3a70a5ab88 /src/game | |
| parent | d1233da64ae31a381fd484b446e87c2c55ed02b8 (diff) | |
fix mem leaks, string convenience funcs
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/world/bsp.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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_FACE> 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_FACE> bsp_map_get_faces( WORLD_MAP* map ) { LIST<BSP_FACE> walls = bsp_map_faces_from_walls( map ); LIST<BSP_FACE> 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; } |
