Skip to content

Commit fcfae69

Browse files
authored
fix: build break from untested combo of two PRs (#4794)
Oops, my bad. Looks like #4664 (merged about a week ago) and #4783 (merged today, but authored before #4664 was merged) interacted in a way that produced a build break. This tiny fix is essential to unbreak it. Signed-off-by: Larry Gritz <[email protected]>
1 parent 235e979 commit fcfae69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtexture/imagecache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3915,7 +3915,7 @@ ImageCacheImpl::add_tile(ustring filename, int subimage, int miplevel, int x,
39153915
}
39163916
if (chend < chbegin) { // chend < chbegin means "all channels."
39173917
chbegin = 0;
3918-
chend = file->spec(subimage, miplevel).nchannels;
3918+
chend = file->spec(subimage).nchannels;
39193919
}
39203920
TileID tileid(*file, subimage, miplevel, x, y, z, chbegin, chend);
39213921
ImageCacheTileRef tile

0 commit comments

Comments
 (0)