mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
DREAMWEB: Fix yet another regression in setPickup
getAnyAd and getEitherAd have different inputs, so can't be interchanged...
This commit is contained in:
parent
62dc71a73a
commit
133cfc3ae9
@ -431,9 +431,9 @@ void DreamGenContext::selectOb() {
|
||||
void DreamGenContext::setPickup() {
|
||||
if (data.byte(kObjecttype) != kSetObjectType1 && data.byte(kObjecttype) != kSetObjectType3) {
|
||||
// The original called getAnyAd() here. However, since object types
|
||||
// 1 and 3 are excluded, the resulting object is a DynObject, so
|
||||
// we can use getEitherAd() instead.
|
||||
DynObject *object = getEitherAdCPP();
|
||||
// 1 and 3 are excluded, the resulting object is a DynObject
|
||||
uint8 dummy;
|
||||
DynObject *object = (DynObject *)getAnyAd(&dummy, &dummy);
|
||||
if (object->mapad[0] == 4) {
|
||||
blank();
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user