ken-noland / OpenXcom

Open-source clone of the original X-Com
http://openxcom.org
GNU General Public License v3.0
0 stars 0 forks source link

Crash when accessing _dest from Moving Craft #17

Closed MaxMahem closed 3 months ago

MaxMahem commented 3 months ago

Actual error is an access violation, probably a casting error? It looks correct in inspection, though, I'm not sure what the deal is.

MaxMahem commented 3 months ago

Looks like a double deletion.

MaxMahem commented 3 months ago

Removing the copy ctor and implementing a move ctor for UFO so that owned pointers get cleaned up correctly appears to have fixed this.