mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
TWINE: don't try to load inventory items for lba2 from hqr
This commit is contained in:
parent
726a1ed422
commit
56e782ef8c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user