[Scummvm-git-logs] scummvm master -> c2b9ceefa81ff07a44c2b998733405ad6038c332
sdelamarre
noreply at scummvm.org
Wed Apr 19 22:46:13 UTC 2023
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:
c2b9ceefa8 GOB: safety check for zero width or height in o1_capturePush
Commit: c2b9ceefa81ff07a44c2b998733405ad6038c332
https://github.com/scummvm/scummvm/commit/c2b9ceefa81ff07a44c2b998733405ad6038c332
Author: Simon Delamarre (simon.delamarre14 at gmail.com)
Date: 2023-04-20T00:39:21+02:00
Commit Message:
GOB: safety check for zero width or height in o1_capturePush
Fixes the "Feed the rabbits" game in Adibou1 "Count 4-5 years" application
Changed paths:
engines/gob/inter_v1.cpp
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp
index 068cd264de3..a57f12094c4 100644
--- a/engines/gob/inter_v1.cpp
+++ b/engines/gob/inter_v1.cpp
@@ -1348,7 +1348,7 @@ void Inter_v1::o1_capturePush(OpFuncParams ¶ms) {
width = _vm->_game->_script->readValExpr();
height = _vm->_game->_script->readValExpr();
- if ((width < 0) || (height < 0))
+ if ((width <= 0) || (height <= 0))
return;
_vm->_game->capturePush(left, top, width, height);
More information about the Scummvm-git-logs
mailing list