mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
HYPNO: avoid crash with invalid rect in spider
This commit is contained in:
parent
c6816096db
commit
17906600b7
@ -185,7 +185,8 @@ void SpiderEngine::drawHealth() {
|
||||
Common::Rect r;
|
||||
uint32 c;
|
||||
int d = (22 * (_maxHealth - _health) / _maxHealth);
|
||||
|
||||
if (d >= 22)
|
||||
return;
|
||||
r = Common::Rect(256, 152 + d, 272, 174);
|
||||
if (d >= 11)
|
||||
c = 250; // red
|
||||
|
Loading…
Reference in New Issue
Block a user