This commit is contained in:
parent
86cd783d02
commit
b8cf43e58d
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue