Fix all files being allowed past the suffix check for images

This commit is contained in:
in1tiate 2021-11-15 16:48:46 -06:00
parent 2d38257878
commit 101a5e506f

View File

@ -517,7 +517,7 @@ QString AOApplication::get_sfx_suffix(VPath sound_to_check)
QString AOApplication::get_image_suffix(VPath path_to_check, bool static_image) QString AOApplication::get_image_suffix(VPath path_to_check, bool static_image)
{ {
QStringList suffixes { "" }; QStringList suffixes {};
if (!static_image) { if (!static_image) {
suffixes.append({ ".webp", ".apng", ".gif" }); suffixes.append({ ".webp", ".apng", ".gif" });
} }