aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-18 14:08:32 +0100
committerWillem Jan Palenstijn2011-12-18 14:08:32 +0100
commitf0508dd05a2840a98f98d3a215b5a859d757e653 (patch)
tree854224daa4c472cd37c94fb7b976fb29ddc5c4a4
parentcf73ee9939fae986db922a2551544277d8d48449 (diff)
downloadscummvm-rg350-f0508dd05a2840a98f98d3a215b5a859d757e653.tar.gz
scummvm-rg350-f0508dd05a2840a98f98d3a215b5a859d757e653.tar.bz2
scummvm-rg350-f0508dd05a2840a98f98d3a215b5a859d757e653.zip
DREAMWEB: Fix regression in useWinch
-rw-r--r--engines/dreamweb/use.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index 06cb5a9131..5a80a33bd5 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -994,7 +994,8 @@ void DreamGenContext::useObject() {
}
void DreamGenContext::useWinch() {
- if (checkInside(40, 1) == kNumexobjects || !compare(cl, 4, "FUSE")) {
+ uint16 contentIndex = checkInside(40, 1);
+ if (contentIndex == kNumexobjects || !compare(contentIndex, kExObjectType, "FUSE")) {
// No winch
showFirstUse();
putBackObStuff();