mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
ASYLUM: fix integer overflow in Screen::graphicsSelectionSort()
This commit is contained in:
parent
408a85436a
commit
bf7755aa29
@ -712,6 +712,9 @@ void Screen::clearGraphicsInQueue() {
|
||||
void Screen::graphicsSelectionSort() {
|
||||
uint32 maxIdx;
|
||||
|
||||
if (!_queueItems.size())
|
||||
return;
|
||||
|
||||
for (uint32 i = 0; i < _queueItems.size() - 1; i++) {
|
||||
maxIdx = i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user