qbsp: q2: fix empty optional access when compiling q2 map lacking extended flags

This commit is contained in:
Eric Wasylishen 2022-02-20 16:25:23 -07:00
parent cb464031da
commit ebe07ca510
1 changed files with 3 additions and 0 deletions

View File

@ -1371,6 +1371,9 @@ static void ParseTextureDef(parser_t &parser, mapface_t &mapface, const mapbrush
// assign animation to extinfo, so that we load the animated
// first one first
if (auto wal = LoadWal(mapface.texname.c_str())) {
if (!extinfo.info) {
extinfo.info = extended_texinfo_t{};
}
extinfo.info->animation = wal->animation;
}
}