*/}}
1
0
Kaynağa Gözat

prevent node copy fromcrashing

YimingWu 1 yıl önce
ebeveyn
işleme
e1fd568c52
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;