diff options
author | Paul Gilbert | 2012-01-01 16:35:10 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-01-01 16:37:25 +1100 |
commit | 54d0f8124e1a934e04cb71f48e189af535c63fa2 (patch) | |
tree | 9e92f8cc442a06f457bfc6cb14da3d3bb62986f4 /engines/tsage | |
parent | 83acabfdbdf4a44ce94eb068574d9938df301b1f (diff) | |
download | scummvm-rg350-54d0f8124e1a934e04cb71f48e189af535c63fa2.tar.gz scummvm-rg350-54d0f8124e1a934e04cb71f48e189af535c63fa2.tar.bz2 scummvm-rg350-54d0f8124e1a934e04cb71f48e189af535c63fa2.zip |
TSAGE: Bugfix for #3467505 - crash viewing ammo belt when the clip is empty
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/blue_force/blueforce_dialogs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/blue_force/blueforce_dialogs.cpp b/engines/tsage/blue_force/blueforce_dialogs.cpp index a1ac19ecee..a76d5839a9 100644 --- a/engines/tsage/blue_force/blueforce_dialogs.cpp +++ b/engines/tsage/blue_force/blueforce_dialogs.cpp @@ -344,7 +344,7 @@ void AmmoBeltDialog::draw() { // Draw the first clip if necessary if (clip1) { - GfxSurface clipSurface = surfaceFromRes(9, 6, BF_GLOBALS._clip1Bullets); + GfxSurface clipSurface = surfaceFromRes(9, 6, BF_GLOBALS._clip1Bullets + 1); _clip1Rect.resize(clipSurface, _clip1Rect.left, _clip1Rect.top, 100); g_globals->gfxManager().copyFrom(clipSurface, bounds.left + _clip1Rect.left, bounds.top + _clip1Rect.top); @@ -352,7 +352,7 @@ void AmmoBeltDialog::draw() { // Draw the second clip if necessary if (clip2) { - GfxSurface clipSurface = surfaceFromRes(9, 6, BF_GLOBALS._clip2Bullets); + GfxSurface clipSurface = surfaceFromRes(9, 6, BF_GLOBALS._clip2Bullets + 1); _clip2Rect.resize(clipSurface, _clip2Rect.left, _clip2Rect.top, 100); g_globals->gfxManager().copyFrom(clipSurface, bounds.left + _clip2Rect.left, bounds.top + _clip2Rect.top); |