mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 10:51:11 +00:00
f94153f07a
op_getInventoryItem/op_setInventoryItem could operate on inventoryItems[4] while inventoryItems has only 4 elements. This effectively accesses the 'money' field right behind this array. Due to a broken assert, this was never detected. This commit fixes it by redirecting accesses to inventoryItems[4] to money, and also fixes the assert. An alternative solution would have been enlarging the array, and removing the money field, but that would require more changes in the engine. |
||
---|---|---|
.. | ||
configure.engine | ||
console.cpp | ||
console.h | ||
detection.cpp | ||
graphics.cpp | ||
graphics.h | ||
menu.cpp | ||
midi.cpp | ||
midi.h | ||
module.mk | ||
opcodes.cpp | ||
resource.cpp | ||
saveload.cpp | ||
staticres.cpp | ||
touche.cpp | ||
touche.h |