- fixed: IDs that map to nothing must be removed from the spawn/conversation ID maps.

This commit is contained in:
Christoph Oelckers 2015-04-23 20:09:12 +02:00
parent 8d501fdb9f
commit a54404074a

View file

@ -659,8 +659,12 @@ void InitClassMap(FClassMap &themap, SpawnMap &thedata)
pair->Value.filename.GetChars(), pair->Value.linenum, pair->Value.classname.GetChars()); pair->Value.filename.GetChars(), pair->Value.linenum, pair->Value.classname.GetChars());
error++; error++;
} }
themap.Insert(pair->Key, cls);
}
else
{
themap.Remove(pair->Key);
} }
themap.Insert(pair->Key, cls);
} }
if (error > 0) if (error > 0)
{ {