This commit is contained in:
Daveo 2001-05-23 20:02:48 +00:00
parent 86cd783d02
commit b8cf43e58d

View File

@ -88,7 +88,10 @@ vector<int> Counts;
{
sMkLevelLayerThing &ThisThing=ThingList[i];
bool Found=Config.GetInt(GetTypeName(),ThisThing.Name,ThisThing.Type);
Counts[ThisThing.Type]++;
int Idx=Config.FindKey(GetTypeName(),ThisThing.Name);
Counts[Idx]++;
ASSERT(Idx<KeyCount);
if (!Found)
GObject::Error(ERR_FATAL,"%s not found in list\n",ThisThing.Name);
}