From fb95542a860d9633902e4b249b213c0e855e7340 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sat, 10 Aug 2019 21:05:28 +0530 Subject: HDB: Fix drawDeliveries() --- engines/hdb/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp index 9a3c1b77fd..9b55d262ce 100644 --- a/engines/hdb/window.cpp +++ b/engines/hdb/window.cpp @@ -1444,7 +1444,7 @@ void Window::drawDeliveries() { // Draw delivery items int inv; - for (inv = 0; inv < g_hdb->_ai->getInvAmount(); inv++) { + for (inv = 0; inv < g_hdb->_ai->getDeliveriesAmount(); inv++) { d = g_hdb->_ai->getDeliveryItem(inv); if (_dlvsInfo.animate && inv == g_hdb->_ai->getDeliveriesAmount() - 1) { if (_dlvsInfo.go1) { -- cgit v1.2.3