[Scummvm-git-logs] scummvm master -> b0681082a9ee883b72827a3e2348ea2cf9a1f604
bgK
bastien.bouclet at gmail.com
Fri Jun 22 06:39:32 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b0681082a9 MOHAWK: RIVEN: Fix out of bounds write in the flies effect
Commit: b0681082a9ee883b72827a3e2348ea2cf9a1f604
https://github.com/scummvm/scummvm/commit/b0681082a9ee883b72827a3e2348ea2cf9a1f604
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2018-06-22T06:35:24+02:00
Commit Message:
MOHAWK: RIVEN: Fix out of bounds write in the flies effect
Fixes Trac#10579.
Changed paths:
engines/mohawk/riven_graphics.cpp
diff --git a/engines/mohawk/riven_graphics.cpp b/engines/mohawk/riven_graphics.cpp
index d4ea8fc..e19a56d 100644
--- a/engines/mohawk/riven_graphics.cpp
+++ b/engines/mohawk/riven_graphics.cpp
@@ -823,8 +823,8 @@ void FliesEffect::initFlies(uint16 count) {
}
void FliesEffect::initFlyRandomPosition(uint index) {
- int posX = _vm->_rnd->getRandomNumber(_gameRect.right - 3);
- int posY = _vm->_rnd->getRandomNumber(_gameRect.bottom - 3);
+ int posX = _vm->_rnd->getRandomNumber(_gameRect.right - 4);
+ int posY = _vm->_rnd->getRandomNumber(_gameRect.bottom - 4);
if (posY < 100) {
posY = 100;
More information about the Scummvm-git-logs
mailing list