Add missing returns for untagged lines/sectors

This commit is contained in:
Ricardo Luís Vaz Silva 2023-01-21 15:00:57 -03:00 committed by Rachael Alexanderson
parent 793d6af5d1
commit 0149940a2a

View file

@ -355,6 +355,8 @@ int FTagManager::GetSectorTag(const sector_t *sector, int index)
return (j < n && allTags[j].target == i) ? allTags[j].tag : 0; return (j < n && allTags[j].target == i) ? allTags[j].tag : 0;
} }
return 0;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -398,6 +400,8 @@ int FTagManager::GetLineID(const line_t *line, int index)
return (j < n && allTags[j].target == i) ? allTags[j].tag : 0; return (j < n && allTags[j].target == i) ? allTags[j].tag : 0;
} }
return 0;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------