also removed the if() case mentioned in the prior commit from addObjectDialog.cpp. :P

Tue, 22 Oct 2013 13:49:55 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Tue, 22 Oct 2013 13:49:55 +0300
changeset 524
52d5884b753c
parent 523
a12e36f2db5f
child 525
4f6e46a3bfc3

also removed the if() case mentioned in the prior commit from addObjectDialog.cpp. :P

src/addObjectDialog.cpp file | annotate | diff | comparison | revisions
--- a/src/addObjectDialog.cpp	Tue Oct 22 13:47:41 2013 +0300
+++ b/src/addObjectDialog.cpp	Tue Oct 22 13:49:55 2013 +0300
@@ -313,8 +313,7 @@
 	matrix transform = g_identity;
 	AddObjectDialog dlg (type, obj);
 
-	if (obj)
-		assert (obj->getType() == type);
+	assert (!obj || obj->getType() == type);
 
 	if (dlg.exec() == false)
 		return;

mercurial