Switching to Linux to find a memory bug and I want to keep a record of what caused it.
This commit is contained in:
parent
be3eef7082
commit
e51fb8627c
7 changed files with 23 additions and 42 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue