From 9194b23d5baf62e3fd549ad6d1cd31ebdc5597f3 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 6 Dec 2011 19:58:00 +0100 Subject: DREAMWEB: Fix regression in 'usecart' --- engines/dreamweb/use.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/dreamweb') 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(); -- cgit v1.2.3