aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/ai-init.cpp')
-rw-r--r--engines/hdb/ai-init.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp
index 66e78f1f97..5eeff2bd8c 100644
--- a/engines/hdb/ai-init.cpp
+++ b/engines/hdb/ai-init.cpp
@@ -1275,6 +1275,7 @@ void AI::save(Common::OutSaveFile *out) {
// Save Inventory
for (i = 0; i < kMaxInventory; i++) {
out->writeUint16LE(_inventory[i].keep);
+ _inventory[i].ent.save(out);
}
out->writeUint32LE(_numInventory);
@@ -1464,6 +1465,7 @@ void AI::loadSaveFile(Common::InSaveFile *in) {
// Load Inventory
for (i = 0; i < kMaxInventory; i++) {
_inventory[i].keep = in->readUint16LE();
+ _inventory[i].ent.load(in);
}
_numInventory = in->readUint32LE();