mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
GOB: Remove a useless call to Variables::getAddressOff8()
This is a left-over vestige of when the gob engine recorded the size of each variable currently in use, because it byte-swapped all variables on save/load depending on the machine ScummVM ran on. The gob engine doesn't do that all anymore (instead, the variables are always stored in the endianness of the original game), so getAddressOff8() doesn't store "this is an 8-bit variable" anymore, making the call a NOP. This fixes Coverity Scan issue #1267142.
This commit is contained in:
parent
51bcdec300
commit
370107c953
@ -163,11 +163,9 @@ void Map_v2::loadMapObjects(const char *avjFile) {
|
||||
mapHeight = _screenHeight / _tilesHeight;
|
||||
mapWidth = _screenWidth / _tilesWidth;
|
||||
|
||||
for (int i = 0; i < mapHeight; i++) {
|
||||
for (int i = 0; i < mapHeight; i++)
|
||||
for (int j = 0; j < mapWidth; j++)
|
||||
setPass(j, i, mapData.readSByte());
|
||||
_vm->_inter->_variables->getAddressOff8(var + i * _passWidth);
|
||||
}
|
||||
}
|
||||
mapData.seek(tmpPos);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user