Skip to content

Commit

Permalink
Add missing returns for untagged lines/sectors
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 authored and madame-rachelle committed Aug 2, 2023
1 parent 793d6af commit 0149940
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/playsim/p_tags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -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;
}

//-----------------------------------------------------------------------------
Expand Down

0 comments on commit 0149940

Please sign in to comment.