Skip to content

Commit

Permalink
Hotfix game crash on load, release 11.7.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
krzychu124 committed Oct 11, 2022
1 parent 119e8ba commit 503421d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ This changelog includes all versions and major variants of the mod going all the

> Date format: dd/mm/yyyy
#### TM:PE V[11.7.1.2](https://github.com/CitiesSkylinesMods/TMPE/compare/11.7.1.1...11.7.1.2) STABLE, 11/10/2022

- [Fixed] Game crash on load (krzychu124)
- [Steam] [TM:PE v11 STABLE](https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252)

#### TM:PE V11.7.1.2 TEST, 11/10/2022

- [Fixed] Game crash on load (krzychu124)
- [Steam] [TM:PE v11 TEST](https://steamcommunity.com/sharedfiles/filedetails/?id=2489276785)

#### TM:PE V[11.7.1.1](https://github.com/CitiesSkylinesMods/TMPE/compare/11.7.0.1...11.7.1.1) STABLE, 10/10/2022
- [Meta] TM:PE 11.7.1.1 TEST branch released as STABLE - huge thanks to our beta testers!
- [New] Dead-end lane connections #1613, #1213 (kianzarrin)
Expand Down
7 changes: 7 additions & 0 deletions TLM/TLM/Resources/whats_new.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[Version] 11.7.1.2
[Released] Oct 11th 2022
[Link] tmpe-v11712-stable-11102022
[Stable]
[Fixed] Game crash on load (krzychu124)
[/Version]

[Version] 11.7.1.1
[Released] Oct 10th 2022
[Link] tmpe-v11711-stable-10102022
Expand Down
4 changes: 3 additions & 1 deletion TLM/TLM/UI/Helpers/SerializableUIOptionBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace TrafficManager.UI.Helpers {
using ICities;
using System.Reflection;
using System;
using System.Threading;
using TrafficManager.State;
using JetBrains.Annotations;
using TrafficManager.Lifecycle;
Expand Down Expand Up @@ -104,7 +105,8 @@ public abstract class SerializableUIOptionBase<TVal, TUI, TComponent> : ILegacyS

/* UI: */

public bool HasUI => _ui != null;
// TODO FIX - temporary solution!
public bool HasUI => _ui != null && Thread.CurrentThread != SimulationManager.instance.m_simulationThread;
protected TUI _ui;

protected string _label;
Expand Down
2 changes: 1 addition & 1 deletion TLM/TLM/UI/WhatsNew/WhatsNew.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TrafficManager.UI.WhatsNew {

public class WhatsNew {
// bump and update what's new changelogs when new features added
public static readonly Version CurrentVersion = new Version(11,7,1,1);
public static readonly Version CurrentVersion = new Version(11,7,1,2);

private const string WHATS_NEW_FILE = "whats_new.txt";
private const string RESOURCES_PREFIX = "TrafficManager.Resources.";
Expand Down

0 comments on commit 503421d

Please sign in to comment.