Got a message saying "%station% is under attack" in Heretic. When looking at the system map, no indicator appeared to show which station was under attack however Heretic station was the only one remaining at the time. Several Sentinels then flew near Heretic station but did not attack and instead they proceeded to gate out of the system. After that, the message "We're under attack!" continues to appear onscreen.
Not sure if this has any relevance but my game was initially created in the 1.9 Release Candidate version on Steam but when 1.9 officially released, I disabled the Beta Branch option and continued to play in 1.9.
EDIT: I continued to play some more from that save-game and whenever I gated out of any system, the message "Sapphire-class yacht destroyed!" would appear (see screenshot 2) but after I saved and reloaded, it seemed to stop happening.


Not sure exactly what's going on:
- When picking a station to attack, we store the target ID in
targetID
and we register for events on the target object. - When sending the message, we convert the target ID to an object pointer. If that fails (returns nil) then we would get the message in the bug.
- When picking a station to attack, if we don't find an appropriate station, we pick the player ship. When sending the message, we check to see if the player ship is the target and skip the message.
- When the target that we registered for is destroyed, we output a message. When the player leaves a system, it is treated as the object being destroyed. The message, "Sapphire-class yacht destroyed" means that the player ship is the target and we registered for events on it. When the ship is destroyed, we output the message.
- But if the player was the target, and we properly registered, then why doesn't the target ID work (why does it come back nil)?