Fix crash when using "add borders" with a triangle

Sun, 30 Aug 2015 04:43:14 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 30 Aug 2015 04:43:14 +0300
changeset 960
9fa260f4386e
parent 959
737245eee433
child 961
f81445a7abde

Fix crash when using "add borders" with a triangle

src/actionsEdit.cpp file | annotate | diff | comparison | revisions
--- a/src/actionsEdit.cpp	Sun Aug 30 04:41:54 2015 +0300
+++ b/src/actionsEdit.cpp	Sun Aug 30 04:43:14 2015 +0300
@@ -274,6 +274,7 @@
 			lines[0] = LDSpawn<LDLine> (tri->vertex (0), tri->vertex (1));
 			lines[1] = LDSpawn<LDLine> (tri->vertex (1), tri->vertex (2));
 			lines[2] = LDSpawn<LDLine> (tri->vertex (2), tri->vertex (0));
+			lines[3] = nullptr;
 		}
 
 		for (int i = 0; i < countof (lines); ++i)

mercurial