mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 08:39:51 +00:00
parent
380bcba4fc
commit
e964e15ed3
@ -1138,13 +1138,12 @@ void GPUCommon::DoState(PointerWrap &p) {
|
||||
}
|
||||
}
|
||||
int currentID = 0;
|
||||
if (currentList != NULL) {
|
||||
ptrdiff_t off = currentList - &dls[0];
|
||||
currentID = (int) (off / sizeof(DisplayList));
|
||||
if (currentList != nullptr) {
|
||||
currentID = (int)(currentList - &dls[0]);
|
||||
}
|
||||
p.Do(currentID);
|
||||
if (currentID == 0) {
|
||||
currentList = NULL;
|
||||
currentList = nullptr;
|
||||
} else {
|
||||
currentList = &dls[currentID];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user