mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-11 17:49:53 -10:00
The crash described in #1561 was caused by a NULL ai profile. The profile was not set because the lab system already had a loaded ship object (see line 2230). These changes make sure that the loaded ship object is deleted before closing the lab system which ensures that the ai profile is set the next time the lab is initialized. This fixes #1561.