Writefile: Cleanup Text runtime data.

This commit is contained in:
Bastien Montagne 2020-04-01 10:38:20 +02:00
parent 33a622cbf4
commit 4f509db181
1 changed files with 3 additions and 0 deletions

View File

@ -3179,6 +3179,9 @@ static void write_text(WriteData *wd, Text *text, const void *id_address)
text->flags &= ~TXT_ISEXT;
}
/* Clean up, important in undo case to reduce false detection of changed datablocks. */
text->compiled = NULL;
/* write LibData */
writestruct_at_address(wd, ID_TXT, Text, 1, id_address, text);
write_iddata(wd, &text->id);