Commit b750ce3b by Joshua Bowren

Fixed bug where the shared mesh of Wall and Point could still be null when deleting them.

parent 44cf911a
......@@ -38,7 +38,8 @@ namespace RaahnSimulation
public static void CleanShared()
{
sharedMesh.Free();
if (sharedMesh != null)
sharedMesh.Free();
}
public override void Draw()
......
......@@ -395,7 +395,7 @@ namespace RaahnSimulation
public const string EXPERIMENT_FOLDER = "Data/Experiments/";
public const string LOG_FOLDER = "Data/Logs/";
public const string TIME_ELAPSED = "Total Time Elapsed: {0}s";
public const string VERSION_STRING = "Version 1.0";
public const string VERSION_STRING = "Version 20160717";
//Log strings.
public const string LOG_SCORE_FILE = "Scores.txt";
public const string LOG_SCORE_FORMAT = "{0} ";
......
......@@ -51,7 +51,8 @@ namespace RaahnSimulation
public static void CleanShared()
{
sharedMesh.Free();
if (sharedMesh != null)
sharedMesh.Free();
}
public override void SetPosition(double x, double y)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment