yay I can test tests now

This commit is contained in:
Jonathan 2021-09-13 11:24:40 -04:00
parent 4944ea36c7
commit f89d5534b6
1 changed files with 4 additions and 1 deletions

View File

@ -206,11 +206,14 @@ FindMiptex(const char *name, std::optional<extended_texinfo_t> &extended_info, b
if (pathsep) if (pathsep)
name = pathsep + 1; name = pathsep + 1;
if (!extended_info.has_value()) {
extended_info = extended_texinfo_t { };
}
for (i = 0; i < map.nummiptex(); i++) { for (i = 0; i < map.nummiptex(); i++) {
const texdata_t &tex = map.miptex.at(i); const texdata_t &tex = map.miptex.at(i);
if (!Q_strcasecmp(name, tex.name.c_str())) { if (!Q_strcasecmp(name, tex.name.c_str())) {
return i; return i;
} }
} }