diff --git a/TS SE Tool/CustomClasses/Save/Items/SiiNunit.cs b/TS SE Tool/CustomClasses/Save/Items/SiiNunit.cs index 71d68fe..687ee97 100644 --- a/TS SE Tool/CustomClasses/Save/Items/SiiNunit.cs +++ b/TS SE Tool/CustomClasses/Save/Items/SiiNunit.cs @@ -299,11 +299,6 @@ public dynamic DetectTag(string nameless, string tagLine, string[] _input) return new Oversize_Block_rule_Save(_input); } - case "police_offence_log": - { - return new Police_offence_Log(_input); - } - case "police_ctrl": { return new Police_Ctrl(_input); @@ -344,6 +339,16 @@ public dynamic DetectTag(string nameless, string tagLine, string[] _input) return new Ferry_log_Entry(_input); } + case "police_offence_log": + { + return new Police_offence_Log(_input); + } + + case "police_offence_log_entry": + { + return new Police_offence_log_Entry(_input); + } + case "gps_waypoint_storage": { return new GPS_waypoint_Storage(_input); @@ -787,6 +792,20 @@ internal string PrintOut(uint _version) } } + //=== Police offence Log + + if (_version >= (byte)saveVTV.v147) + { + Police_offence_Log Police_offence_Log = SiiNitems[Economy.police_offence_log]; + + returnSB.AppendLine(Police_offence_Log.PrintOut(_version, Economy.police_offence_log)); + + foreach (string item in Police_offence_Log.detailed_history_entries.Where(x => x != null && x != "null")) + { + returnSB.AppendLine(SiiNitems[item].PrintOut(_version, item)); + } + } + //=== GPS Online foreach (string item in Economy.stored_online_gps_behind_waypoints.Where(x => x != null && x != "null")) @@ -823,20 +842,6 @@ internal string PrintOut(uint _version) } } - //=== Police offence Log - - if (_version >= (byte)saveVTV.v147) - { - Police_offence_Log Police_offence_Log = SiiNitems[Economy.police_offence_log]; - - returnSB.AppendLine(Police_offence_Log.PrintOut(_version, Economy.police_offence_log)); - - foreach (string item in Police_offence_Log.detailed_history_entries.Where(x => x != null && x != "null")) - { - returnSB.AppendLine(SiiNitems[item].PrintOut(_version, item)); - } - } - //=== Police Control returnSB.AppendLine(SiiNitems[Economy.police_ctrl].PrintOut(_version, Economy.police_ctrl));