diff options
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r-- | scumm/resource.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index 5f232a8969..46b420a2d0 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -937,6 +937,7 @@ void ResourceManager::nukeResource(int type, int idx) { debugC(DEBUG_RESOURCE, "nukeResource(%s,%d)", resTypeFromId(type), idx); address[type][idx] = 0; flags[type][idx] = 0; + status[type][idx] &= ~RS_MODIFIED; _allocatedSize -= ((MemBlkHeader *)ptr)->size; free(ptr); } @@ -1018,12 +1019,6 @@ void ResourceManager::setModified(int type, int i) { status[type][i] |= RS_MODIFIED; } -void ResourceManager::setUnModified(int type, int i) { - if (!validateResource("Modified", type, i)) - return; - status[type][i] &= ~RS_MODIFIED; -} - bool ResourceManager::isModified(int type, int i) const { if (!validateResource("isModified", type, i)) return false; |