was crashing when joining in-link to in-link for the logic buttons.

This commit is contained in:
2009-08-30 02:09:57 +00:00
parent 75697c40a0
commit 2cb6078900

View File

@@ -678,7 +678,11 @@ static void ui_add_link(uiBut *from, uiBut *to)
return;
}
if (from->type==LINK && to->type==INLINK) {
if (from->type==INLINK && to->type==INLINK) {
printf("cannot link\n");
return;
}
else if (from->type==LINK && to->type==INLINK) {
if( from->link->tocode != (int)to->hardmin ) {
printf("cannot link\n");
return;