mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +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
bfc10f4c5e
commit
96fa3b124e
1 changed files with 8 additions and 5 deletions
|
@ -98,6 +98,8 @@ void FTagManager::AddSectorTag(int sector, int tag)
|
||||||
|
|
||||||
void FTagManager::RemoveSectorTags(int sect)
|
void FTagManager::RemoveSectorTags(int sect)
|
||||||
{
|
{
|
||||||
|
if (startForSector.Size() > 0)
|
||||||
|
{
|
||||||
int start = startForSector[sect];
|
int start = startForSector[sect];
|
||||||
if (start >= 0)
|
if (start >= 0)
|
||||||
{
|
{
|
||||||
|
@ -107,6 +109,7 @@ void FTagManager::RemoveSectorTags(int sect)
|
||||||
start++;
|
start++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue