Add missing returns for untagged lines/sectors
This commit is contained in:
parent
66fb6d3474
commit
d2b91c7de1
1 changed files with 4 additions and 0 deletions
|
|
@ -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 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 0;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue