diff --git a/src/srctools/_engine_db.py b/src/srctools/_engine_db.py index 1c33cbdc..ca40272f 100644 --- a/src/srctools/_engine_db.py +++ b/src/srctools/_engine_db.py @@ -602,7 +602,8 @@ def record_strings(string: str) -> bytes: ent_serialise(ent, dummy_file, record_strings) ent_to_size[ent] = dummy_file.tell() - assert ent is not None and ent.classname.casefold() == '_cbaseentity_', ent + assert ent is not None + assert ent.classname.casefold() == '_cbaseentity_', ent base_strings = ent_to_string[ent] print(f'{SHARED_STRINGS-len(base_strings)}/{SHARED_STRINGS} shared strings used.')