diff --git a/src/bsp/Bsp_ent.cpp b/src/bsp/Bsp_ent.cpp index 19a89abb..e64683bb 100644 --- a/src/bsp/Bsp_ent.cpp +++ b/src/bsp/Bsp_ent.cpp @@ -201,9 +201,12 @@ byte* Bsp::create_ent_lump(vector& entList, int& len, bool stripNodes) } } + Entity* ent = entList[i]; + ent->clearEmptyKeyvalues(); + ent_data << "{\n"; - ent_data << entList[i]->getFullKvString(); + ent_data << ent->getFullKvString(); ent_data << "}"; if (i < entList.size() - 1) {