mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-29 15:23:02 +00:00
fix the misterious crass caused by loading a .loc file a second time. This one
was very sneeky :)
This commit is contained in:
parent
dbda53e93b
commit
ccd1f6f025
1 changed files with 3 additions and 1 deletions
|
@ -105,6 +105,7 @@ void locs_load(char *mapname)
|
|||
loc[2] = strtol(t2, &t1, 0) * (1.0/8);
|
||||
t1++;
|
||||
t2 = strrchr(t1, '\n');
|
||||
if (t2)
|
||||
t2[0] = '\0';
|
||||
locs_add(loc, t1);
|
||||
}
|
||||
|
@ -122,6 +123,7 @@ void locs_reset()
|
|||
}
|
||||
|
||||
free(locations);
|
||||
locations=0;
|
||||
locations_alloced = 0;
|
||||
locations_count = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue