diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 0afa755d66b..67f8c81f632 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1101,6 +1101,13 @@ DynObject *DreamGenContext::getexad(uint8 index) { return (DynObject *)segRef(data.word(kExtras)).ptr(kExdata, 0) + index; } +DynObject *DreamGenContext::geteitheradCPP() { + if (data.byte(kObjecttype) == 4) + return getexad(data.byte(kItemframe)); + else + return getfreead(data.byte(kItemframe)); +} + SetObject *DreamGenContext::getsetad(uint8 index) { return (SetObject *)segRef(data.word(kSetdat)).ptr(0, 0) + index; } diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index ed77e26ef2c..e3afbab073f 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -157,6 +157,7 @@ void findormake(uint8 index, uint8 value, uint8 type); DynObject *getfreead(uint8 index); DynObject *getexad(uint8 index); + DynObject *geteitheradCPP(); SetObject *getsetad(uint8 index); void setallchanges(); void dochange();