mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed: Trying to remove sector tags for line-less sectors crashed when there were no sector tags at all in a map.
This commit is contained in:
parent
b587c85a81
commit
87ff82dba6
1 changed files with 8 additions and 5 deletions
|
@ -98,13 +98,16 @@ void FTagManager::AddSectorTag(int sector, int tag)
|
|||
|
||||
void FTagManager::RemoveSectorTags(int sect)
|
||||
{
|
||||
int start = startForSector[sect];
|
||||
if (start >= 0)
|
||||
if (startForSector.Size() > 0)
|
||||
{
|
||||
while (allTags[start].target == sect)
|
||||
int start = startForSector[sect];
|
||||
if (start >= 0)
|
||||
{
|
||||
allTags[start].tag = allTags[start].target = -1;
|
||||
start++;
|
||||
while (allTags[start].target == sect)
|
||||
{
|
||||
allTags[start].tag = allTags[start].target = -1;
|
||||
start++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue