Review: Approve @Tibor: To answer your question, a delete deletes the object a pointer is pointing to, so yes, it would have gotten rid of the variable. The solution you implemented is much better though.
Not compiled or tested, but code LGTM :) -- https://code.launchpad.net/~widelands-dev/widelands/ai_coverity/+merge/294132 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/ai_coverity. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp