mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
Build the chunk chain correctly.
Losing all the middle chunks wasn't nice.
This commit is contained in:
parent
bb5f5dd334
commit
0057970e3c
1 changed files with 1 additions and 2 deletions
|
@ -151,10 +151,9 @@ Segtext_new (const char *source_string)
|
|||
(*chunk)->text = src;
|
||||
(*chunk)->start_line = line;
|
||||
|
||||
chunk = &(*chunk)->next;
|
||||
|
||||
while ((src = next_chunk (src, &line))) {
|
||||
*src++ = 0; // terminate the previous chunk
|
||||
chunk = &(*chunk)->next;
|
||||
*chunk = new_chunk ();
|
||||
(*chunk)->tag = find_tag (src);
|
||||
src = next_line (src, &line);
|
||||
|
|
Loading…
Reference in a new issue