Merge branch 'type-cleanup' of https://github.com/Paril/ericw-tools into type-cleanup

This commit is contained in:
Jonathan 2022-01-22 17:55:42 -05:00
commit 6895fea115
1 changed files with 5 additions and 3 deletions

View File

@ -193,13 +193,15 @@ int FindMiptex(const char *name, std::optional<extended_texinfo_t> &extended_inf
if (!internal && !extended_info.has_value()) {
wal = LoadWal(name);
if (!wal.has_value()) {
extended_info = extended_texinfo_t{};
} else {
if (wal) {
extended_info = extended_texinfo_t{wal->contents, wal->flags, wal->value};
}
}
if (!extended_info.has_value()) {
extended_info = extended_texinfo_t{};
}
for (i = 0; i < map.nummiptex(); i++) {
const texdata_t &tex = map.miptex.at(i);