aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-06 19:58:00 +0100
committerWillem Jan Palenstijn2011-12-06 20:04:16 +0100
commit9194b23d5baf62e3fd549ad6d1cd31ebdc5597f3 (patch)
tree3f649904dad7b1038789708c889eee138f4b20d2 /engines
parentead20c37b4294c5247fd2b692ee1dc7e47d5e7f1 (diff)
downloadscummvm-rg350-9194b23d5baf62e3fd549ad6d1cd31ebdc5597f3.tar.gz
scummvm-rg350-9194b23d5baf62e3fd549ad6d1cd31ebdc5597f3.tar.bz2
scummvm-rg350-9194b23d5baf62e3fd549ad6d1cd31ebdc5597f3.zip
DREAMWEB: Fix regression in 'usecart'
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/use.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index 2f7e66c840..fa23f1dc32 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -934,7 +934,7 @@ void DreamGenContext::useWinch() {
checkInside();
char id[4] = { 'F', 'U', 'S', 'E' }; // TODO: convert to string with trailing zero
- if (cl == 114 || !compare(cl, 4, id)) {
+ if (cl == kNumexobjects || !compare(cl, 4, id)) {
// No winch
showFirstUse();
putBackObStuff();
@@ -973,7 +973,7 @@ void DreamGenContext::useCart() {
DynObject *exObject = getExAd(data.byte(kWithobject));
exObject->mapad[0] = 0;
removeSetObject(data.byte(kCommand));
- placeSetObject(data.byte(kWithobject) + 1);
+ placeSetObject(data.byte(kCommand) + 1);
data.byte(kProgresspoints)++;
playChannel1(17);
showFirstUse();