dropecho / desteer

desteer is a steering behaviors library written in C++. Its meant to be easily extensible and very clean.
13 stars 1 forks source link

Smart ptr update #11

Closed joekarl closed 13 years ago

joekarl commented 13 years ago

Okay, so its really fixed this time.

Also I updated the sample app to to use smart pointers. I added a factory method for creating simple steering controllers (necessary due to how shared_ptrs require fully instantiated objects)

Fixed an issue where object would not reference shared_ptr correctly and cause the entity to blow up on dealloc

Changed the different vector types to be shared_ptrs as well to handle case where external changes might cause a copy to be created and the reference to be lost.