mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 16:52:16 +00:00
Fix fuckup in the -1 tag bailout on the global tag lists.
This commit is contained in:
parent
0d11b8f0a2
commit
9457144dd7
1 changed files with 6 additions and 4 deletions
|
|
@ -41,12 +41,13 @@ void Taglist_AddToSectors (const size_t tag, const size_t itemid)
|
|||
void Taglist_AddToLines (const size_t tag, const size_t itemid)
|
||||
{
|
||||
taggroup_t* tagelems;
|
||||
if (!tags_lines[tag])
|
||||
tags_lines[tag] = Z_Calloc(sizeof(taggroup_t), PU_LEVEL, NULL);
|
||||
|
||||
if (tag == -1)
|
||||
return;
|
||||
|
||||
if (!tags_lines[tag])
|
||||
tags_lines[tag] = Z_Calloc(sizeof(taggroup_t), PU_LEVEL, NULL);
|
||||
|
||||
tagelems = tags_lines[tag];
|
||||
tagelems->count++;
|
||||
tagelems->elements = Z_Realloc(tagelems->elements, tagelems->count * sizeof(size_t), PU_LEVEL, NULL);
|
||||
|
|
@ -56,12 +57,13 @@ void Taglist_AddToLines (const size_t tag, const size_t itemid)
|
|||
void Taglist_AddToMapthings (const size_t tag, const size_t itemid)
|
||||
{
|
||||
taggroup_t* tagelems;
|
||||
if (!tags_mapthings[tag])
|
||||
tags_mapthings[tag] = Z_Calloc(sizeof(taggroup_t), PU_LEVEL, NULL);
|
||||
|
||||
if (tag == -1)
|
||||
return;
|
||||
|
||||
if (!tags_mapthings[tag])
|
||||
tags_mapthings[tag] = Z_Calloc(sizeof(taggroup_t), PU_LEVEL, NULL);
|
||||
|
||||
tagelems = tags_mapthings[tag];
|
||||
tagelems->count++;
|
||||
tagelems->elements = Z_Realloc(tagelems->elements, tagelems->count * sizeof(size_t), PU_LEVEL, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue