latebit / latebit-engine

Pixel based game engine integrated in your IDE
3 stars 0 forks source link

Instantiating a Box from another Box does not perform a deep copy #54

Closed shikaan closed 5 months ago

shikaan commented 5 months ago

The underlying corner still points at the original corner, yielding unexpected behaviours.

Actual Behaviour

Box a(1,2);
Box b(a);
// a and b have the same corner

Expected Behaviour

Box a(1,2);
Box b(a);
// a and b have equal corners, but not _the same_