aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorMax Horn2002-12-27 19:48:30 +0000
committerMax Horn2002-12-27 19:48:30 +0000
commit788fd1e7189132619d0f8fc03b5a4de8149f08af (patch)
tree3c5bb7d59837d31be1b4ac3a6764385cc2bb0550 /scumm/resource.cpp
parentc1d0e6800c683396d602827063ab645d664ac5ad (diff)
downloadscummvm-rg350-788fd1e7189132619d0f8fc03b5a4de8149f08af.tar.gz
scummvm-rg350-788fd1e7189132619d0f8fc03b5a4de8149f08af.tar.bz2
scummvm-rg350-788fd1e7189132619d0f8fc03b5a4de8149f08af.zip
like rtRoom, rtRoomScripts should never expire while the room they belong too is loaded; this fixes the crash when picking up the fishing rod
svn-id: r6208
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 217bf86da6..80433ba2ca 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -1381,6 +1381,8 @@ bool Scumm::isResourceInUse(int type, int i)
switch (type) {
case rtRoom:
return _roomResource == (byte)i;
+ case rtRoomScripts:
+ return _roomResource == (byte)i;
case rtScript:
return isScriptInUse(i);
case rtCostume: