Switching to Linux to find a memory bug and I want to keep a record of what caused it.

This commit is contained in:
Zed A. Shaw 2025-07-30 22:34:26 -04:00
parent be3eef7082
commit e51fb8627c
7 changed files with 23 additions and 42 deletions

View file

@ -8,11 +8,11 @@
class WorldBuilder {
public:
Map& $map;
std::shared_ptr<SpatialMap> $collision;
SpatialMap& $collision;
WorldBuilder(Map &map) :
WorldBuilder(Map &map, SpatialMap& collision) :
$map(map),
$collision(std::make_shared<SpatialMap>())
$collision(collision)
{ }
void generate_map();