- fixed: FTagManager::RemoveSectorTags must check if the StartForSector array is large enough to contain the sector whose information is to be removed.

This commit is contained in:
Christoph Oelckers 2015-07-13 08:42:42 +02:00
parent d8bfaf188c
commit eeaea59828

View file

@ -98,7 +98,7 @@ void FTagManager::AddSectorTag(int sector, int tag)
void FTagManager::RemoveSectorTags(int sect)
{
if (startForSector.Size() > 0)
if (startForSector.Size() > sect)
{
int start = startForSector[sect];
if (start >= 0)