Skip to content

Commit

Permalink
Fix: Glitch in panel parser
Browse files Browse the repository at this point in the history
  • Loading branch information
leezer3 committed Jun 14, 2018
1 parent 4aec7ad commit 74a6476
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/OpenBVE/Parsers/Panel/Panel2CfgParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,10 @@ internal static void ParsePanel2Config(string PanelFile, string TrainPath, Syste
double cy = 0.25 * (y0 + y1 + y2 + y3);
double cz = 0.25 * (z0 + z1 + z2 + z3);
VertexTemplate[] vertices = new VertexTemplate[11];
for (int v = 0; v < 11; v++)
{
vertices[v] = new Vertex();
}
int[][] faces = new int[][] {
new int[] { 0, 1, 2 },
new int[] { 0, 3, 4 },
Expand Down

0 comments on commit 74a6476

Please sign in to comment.