TWINE: don't try to load inventory items for lba2 from hqr

This commit is contained in:
Martin Gerhardy 2024-06-23 23:28:23 +02:00
parent 726a1ed422
commit 56e782ef8c

View File

@ -124,6 +124,10 @@ void Resources::preloadSamples() {
}
void Resources::preloadInventoryItems() {
if (!_engine->isLBA1()) {
// lba2 has this data in code
return;
}
const int32 numEntries = HQR::numEntries(Resources::HQR_INVOBJ_FILE);
if (numEntries > NUM_INVENTORY_ITEMS) {
error("Max allowed inventory items exceeded: %i/%i", numEntries, NUM_INVENTORY_ITEMS);