*/}}
Browse Source

prevent node copy fromcrashing

YimingWu 1 year ago
parent
commit
e1fd568c52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      la_interface.h

+ 1 - 1
la_interface.h

@@ -1457,7 +1457,7 @@ void latouched_NodeInSocket(void* unused, int hint);
 #define LA_IDN_OLD_DUPL(socket) \
     old->socket->Duplicated=new->socket;
 #define LA_IDN_NEW_LINK(socket) \
-    { new->socket->Source=old->socket->Source?old->socket->Source->Duplicated:0; new->socket->ColorId=old->socket->ColorId; }
+    { memAssignRef(new->socket,&new->socket->Source,old->socket->Source?old->socket->Source->Duplicated:0); new->socket->ColorId=old->socket->ColorId; }
 
 
 extern laBaseNodeType LA_IDN_KEYBOARD;