aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-08-16 11:41:18 +0530
committerEugene Sandulenko2019-09-03 17:17:34 +0200
commite1f05066426622f2ff42782e229209e2c368d53d (patch)
tree25d6fe79852ab26b425e14c1a92b7e4f443d4c8f /engines/hdb
parenta5f66ed1fe6f90857de53d84ee0f56932445bfac (diff)
downloadscummvm-rg350-e1f05066426622f2ff42782e229209e2c368d53d.tar.gz
scummvm-rg350-e1f05066426622f2ff42782e229209e2c368d53d.tar.bz2
scummvm-rg350-e1f05066426622f2ff42782e229209e2c368d53d.zip
HDB: Fix drawDeliveries() when carrying 2...
... or more delivery items
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp
index e2ca2c2dcb..929a366052 100644
--- a/engines/hdb/window.cpp
+++ b/engines/hdb/window.cpp
@@ -1439,7 +1439,7 @@ void Window::drawDeliveries() {
// Draw delivery items
int inv = 0;
- for (; inv < g_hdb->_ai->getInvAmount(); inv++) {
+ for (; inv < g_hdb->_ai->getDeliveriesAmount(); inv++) {
DlvEnt *d = g_hdb->_ai->getDeliveryItem(inv);
if (_dlvsInfo.animate && inv == g_hdb->_ai->getDeliveriesAmount() - 1) {
if (_dlvsInfo.go1) {