From a54404074a290db80cb6789f273cf8715eef94ac Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 23 Apr 2015 20:09:12 +0200 Subject: [PATCH] - fixed: IDs that map to nothing must be removed from the spawn/conversation ID maps. --- src/p_things.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/p_things.cpp b/src/p_things.cpp index faf1091d5..50e15a1a8 100644 --- a/src/p_things.cpp +++ b/src/p_things.cpp @@ -659,8 +659,12 @@ void InitClassMap(FClassMap &themap, SpawnMap &thedata) pair->Value.filename.GetChars(), pair->Value.linenum, pair->Value.classname.GetChars()); error++; } + themap.Insert(pair->Key, cls); + } + else + { + themap.Remove(pair->Key); } - themap.Insert(pair->Key, cls); } if (error > 0) {