aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-06 17:31:35 +0000
committerMax Horn2005-04-06 17:31:35 +0000
commit3d5b5f2ad83a5d4b463e9e78f204b132e36f770c (patch)
tree4d494a39724db4906bcb4add6522f35e2143ee10 /scumm/script_v6.cpp
parent26e0ec1d240c71f5fdc34b912ee8ddf0368ab6dc (diff)
downloadscummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.tar.gz
scummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.tar.bz2
scummvm-rg350-3d5b5f2ad83a5d4b463e9e78f204b132e36f770c.zip
Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r--scumm/script_v6.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 9f7131c666..736f103ce1 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -451,7 +451,7 @@ ScummEngine_v6::ArrayHeader *ScummEngine_v6::defineArray(int array, int type, in
size *= dim2 + 1;
size *= dim1 + 1;
- ah = (ArrayHeader *)createResource(rtString, id, size + sizeof(ArrayHeader));
+ ah = (ArrayHeader *)res.createResource(rtString, id, size + sizeof(ArrayHeader));
ah->type = TO_LE_16(type);
ah->dim1 = TO_LE_16(dim1 + 1);
@@ -3095,7 +3095,7 @@ void ScummEngine_v6::o6_setBoxSet() {
error("ScummEngine_v6::o6_setBoxSet: Can't find dboxes for set %d", arg);
dboxSize = READ_BE_UINT32(boxd + 4) - 8;
- byte *matrix = createResource(rtMatrix, 2, dboxSize);
+ byte *matrix = res.createResource(rtMatrix, 2, dboxSize);
assert(matrix);
memcpy(matrix, boxd + 8, dboxSize);
@@ -3108,7 +3108,7 @@ void ScummEngine_v6::o6_setBoxSet() {
error("ScummEngine_v6::o6_setBoxSet: Can't find mboxes for set %d", arg);
mboxSize = READ_BE_UINT32(boxm + 4) - 8;
- matrix = createResource(rtMatrix, 1, mboxSize);
+ matrix = res.createResource(rtMatrix, 1, mboxSize);
assert(matrix);
memcpy(matrix, boxm + 8, mboxSize);