*/}}
Explorar o código

prevent node copy fromcrashing

YimingWu hai 1 ano
pai
achega
e1fd568c52
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;