diff options
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r-- | scumm/saveload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index afd2180ed6..fcf73bb1af 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -941,7 +941,7 @@ void ScummEngine::saveLoadResource(Serializer *ser, int type, int idx) { } else { size = ser->loadUint32(); if (size) { - createResource(type, idx, size); + res.createResource(type, idx, size); ser->loadBytes(getResourceAddress(type, idx), size); if (type == rtInventory) { _inventory[idx] = ser->loadUint16(); @@ -992,7 +992,7 @@ void ScummEngine::loadResource(Serializer *ser, int type, int idx) { if (res.mode[type] == 0) { uint32 size = ser->loadUint32(); assert(size); - createResource(type, idx, size); + res.createResource(type, idx, size); ser->loadBytes(getResourceAddress(type, idx), size); if (type == rtInventory) { |