Commit 2a574ef
In ship::clear(), The E removed
memset(&weapons, 0, sizeof(ship_weapon));
but did not add a corresponding
weapons = ship_weapon();
This fixes that. Additionally, this PR removes one of the two uses of ship::clear() by tweaking hud_observer_init. Originally, the code used memcpy, but if the assignment operator works for ai_info, it should be suitable for ship too.
1 parent 1767b7a commit 2a574ef
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5821 | 5821 | | |
5822 | 5822 | | |
5823 | 5823 | | |
| 5824 | + | |
| 5825 | + | |
5824 | 5826 | | |
5825 | 5827 | | |
5826 | 5828 | | |
| |||
0 commit comments