Fix event group tab selection

This commit is contained in:
GriffinR
2024-01-03 15:09:12 -05:00
parent a0069b6a3f
commit 0b2a526e3d
4 changed files with 11 additions and 46 deletions

View File

@@ -106,7 +106,7 @@ uint32_t Metatile::getMaxAttributesMask() {
void Metatile::setLayout(Project * project) {
// Calculate the number of hex characters needed to display a metatile ID.
numMetatileIdChars = 0;
for (uint16_t i = Block::getMaxMetatileId(); i > 1; i /= 0xF)
for (uint16_t i = Block::getMaxMetatileId(); i > 0; i /= 16)
numMetatileIdChars++;
uint32_t behaviorMask = projectConfig.getMetatileBehaviorMask();