Avoid use of QImageReader copy constructor

This commit is contained in:
oldmud0 2021-02-22 14:31:23 -06:00
parent d32ad43665
commit 7579457e89

View File

@ -3103,7 +3103,7 @@ void Courtroom::play_preanim(bool immediate)
return; return;
} }
else { else {
QImageReader s_reader = QImageReader(anim_to_find); QImageReader s_reader(anim_to_find);
int image_count = s_reader.imageCount(); int image_count = s_reader.imageCount();
if (image_count <= 1) { if (image_count <= 1) {
preanim_done(); preanim_done();