mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 16:59:06 +00:00
DREAMWEB: Fix : getexpos has a return value AND a side-effect
This commit is contained in:
parent
fa91f3abf1
commit
35d88d498c
@ -1255,10 +1255,12 @@ void DreamGenContext::getexpos() {
|
||||
const DynObject *objects = (const DynObject *)segRef(data.word(kExtras)).ptr(kExdata, sizeof(DynObject));
|
||||
for (size_t i = 0; i < kNumexobjects; ++i) {
|
||||
if (objects[i].mapad[0] == 0xff) {
|
||||
data.byte(kExpos) = i;
|
||||
di = kExdata + i * sizeof(DynObject);
|
||||
return;
|
||||
}
|
||||
}
|
||||
data.byte(kExpos) = kNumexobjects;
|
||||
di = kExdata + kNumexobjects * sizeof(DynObject);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user