- 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
1 changed files with 5 additions and 1 deletions

View File

@ -659,9 +659,13 @@ 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); themap.Insert(pair->Key, cls);
} }
else
{
themap.Remove(pair->Key);
}
}
if (error > 0) if (error > 0)
{ {
I_Error("%d unknown actor classes found", error); I_Error("%d unknown actor classes found", error);