- 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:
Christoph Oelckers 2015-05-06 23:24:27 +02:00
parent bfc10f4c5e
commit 96fa3b124e

View file

@ -97,6 +97,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)
@ -108,6 +110,7 @@ void FTagManager::RemoveSectorTags(int sect)
} }
} }
} }
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //