Commit 7494f47
committed
clear ship registry after mission
Create a `ship_level_close()` function and call it from `game_level_close()`. Among other tasks, this clears the ship registry to prevent SEXPs or scripts from obtaining references to ships that have been deleted.
Follow-up to #7522.1 parent 741693a commit 7494f47
3 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6914 | 6914 | | |
6915 | 6915 | | |
6916 | 6916 | | |
| 6917 | + | |
| 6918 | + | |
| 6919 | + | |
| 6920 | + | |
| 6921 | + | |
| 6922 | + | |
| 6923 | + | |
| 6924 | + | |
| 6925 | + | |
| 6926 | + | |
| 6927 | + | |
| 6928 | + | |
6917 | 6929 | | |
6918 | 6930 | | |
6919 | 6931 | | |
| |||
8745 | 8757 | | |
8746 | 8758 | | |
8747 | 8759 | | |
| 8760 | + | |
8748 | 8761 | | |
8749 | 8762 | | |
8750 | 8763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1688 | 1688 | | |
1689 | 1689 | | |
1690 | 1690 | | |
| 1691 | + | |
1691 | 1692 | | |
1692 | 1693 | | |
1693 | 1694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
987 | | - | |
| 987 | + | |
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
| |||
0 commit comments