Closed ralphchung closed 5 years ago
Make plant std::optional instead of a pointer which is defined in struct Cell in environment/terrain.h.
plant
struct Cell
This move avoids the uses of dynamic allocating plant objects, which potentially causes leak.
Make
plant
std::optional instead of a pointer which is defined instruct Cell
in environment/terrain.h.This move avoids the uses of dynamic allocating plant objects, which potentially causes leak.