Thanks for posting, sublynx!
It's weired. You have three HK groups, i.e., everything worked fine for at least two save-games
However, the two zeroes in LGN_old_entries.txt are wrong. There should be at least two HK groups
Was there anything "non-usual" during your patrol? Did you dock at a supply ship? Did you load a save-game that was not the last one?
I will check the code again whether I can find any reason for your results.
Regards, LGN1
PS: You can also use V2 for testing. However, V1 has the advantage that the HK groups are reported on the map.