aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/ai-inventory.cpp')
-rw-r--r--engines/hdb/ai-inventory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hdb/ai-inventory.cpp b/engines/hdb/ai-inventory.cpp
index 85fde5e731..c67c11c7d0 100644
--- a/engines/hdb/ai-inventory.cpp
+++ b/engines/hdb/ai-inventory.cpp
@@ -300,7 +300,7 @@ void AI::newDelivery(const char *itemTextName, const char *itemGfxName, const ch
}
bool AI::completeDelivery(const char *id) {
- for (int i = 0; i < _numDeliveries; i++)
+ for (int i = 0; i < _numDeliveries; i++) {
if (!scumm_stricmp(_deliveries[i].id, id)) {
for (; i < _numDeliveries; i++)
memcpy(&_deliveries[i], &_deliveries[i + 1], sizeof(_deliveries[0]));
@@ -311,6 +311,7 @@ bool AI::completeDelivery(const char *id) {
g_hdb->_sound->playVoice(GUY_COMPLETED, 1);
return true;
}
+ }
return false;
}