Fix (harmless) mistake in recent new Append code.

This code path is not yet used so no harm, but that was a fairly nasty
potential crash-generator.
This commit is contained in:
Bastien Montagne 2021-09-17 16:19:49 +02:00
parent 8ee7f62a63
commit 9566e3bc9c
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,7 @@ static void wm_append_do(WMLinkAppendData *lapp_data,
break;
case WM_APPEND_ACT_REUSE_LOCAL:
/* We only need to set `newid` to ID found in previous loop, for proper remapping. */
ID_NEW_SET(id->newid, item->customdata);
ID_NEW_SET(id, item->customdata);
/* This is not a 'new' local appended id, do not set `local_appended_new_id` here. */
break;
case WM_APPEND_ACT_UNSET: