AGI: Fix warning

This commit is contained in:
Martin Kiewitz 2016-02-09 20:22:06 +01:00
parent 3416f67b89
commit 7807bcb76b

View File

@ -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];