mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-22 13:47:05 +00:00
Fix reversing some images with an input tileset (#2081)
This commit is contained in:
+1
-1
@@ -552,7 +552,7 @@ void reverse() {
|
||||
// Get the tile ID at this location
|
||||
size_t tileOfs =
|
||||
tilemap ? static_cast<uint8_t>((*tilemap)[index] - options.baseTileIDs[bank])
|
||||
+ (bank ? nbTilesInBank[0] : 0)
|
||||
+ (bank ? options.maxNbTiles[0] : 0)
|
||||
: index;
|
||||
// This should have been enforced by the earlier checking.
|
||||
assume(tileOfs < nbTiles + options.trim);
|
||||
|
||||
Reference in New Issue
Block a user