mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
parent
380bcba4fc
commit
e964e15ed3
1 changed files with 3 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue