mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
AGI: Fix warning
This commit is contained in:
parent
3416f67b89
commit
7807bcb76b
@ -831,7 +831,8 @@ void GfxFont::loadFontAmigaPseudoTopaz() {
|
||||
topazByteOffset = topazBitOffset >> 3;
|
||||
|
||||
// Security check, although we are working on static const data from within ScummVM
|
||||
assert((topazByteOffset + ((topazHeight - 1) * topazModulo)) < sizeof(fontData_AmigaPseudoTopaz));
|
||||
uint maxOffset = (topazByteOffset + ((topazHeight - 1) * topazModulo));
|
||||
assert(maxOffset < sizeof(fontData_AmigaPseudoTopaz));
|
||||
|
||||
for (uint16 curHeight = 0; curHeight < topazHeight; curHeight++) {
|
||||
*fontData = topazData[topazByteOffset];
|
||||
|
Loading…
Reference in New Issue
Block a user