Being inventory should be implemented using std::weak_ptr
crankycyclops opened this issue · 2 comments
crankycyclops commented
Right now, I keep a set of std::shared_ptrs. However, this makes things more difficult in the case where I want to later remove an owned object from the game. Using std::weak_ptr would solve this issue.
crankycyclops commented
Created a branch to work on this: https://github.com/crankycyclops/trogdor-pp/tree/inventory_weak_ptr
crankycyclops commented
Done.